The code is under '#ifdef not_that_way', but anyway:
- Add missing prison_check_mount() check.
This commit is contained in:
parent
519106bd3e
commit
95ef09329d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user