The code is under '#ifdef not_that_way', but anyway:

- Add missing prison_check_mount() check.
This commit is contained in:
pjd 2005-05-22 22:30:31 +00:00
parent 519106bd3e
commit 95ef09329d

View File

@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
#include <sys/file.h>
#include <sys/filedesc.h>
#include <sys/proc.h>
#include <sys/jail.h>
#include <sys/mac.h>
#include <sys/malloc.h>
#include <sys/mount.h>
@ -331,6 +332,8 @@ linux_ustat(struct thread *td, struct linux_ustat_args *args)
if (dev != NULL && vfinddev(dev, &vp)) {
if (vp->v_mount == NULL)
return (EINVAL);
if (!prison_check_mount(td->td_ucred, vp->v_mount))
return (EINVAL);
#ifdef MAC
error = mac_check_mount_stat(td->td_ucred, vp->v_mount);
if (error)