diff options
author | pjd <pjd@FreeBSD.org> | 2007-03-18 02:39:19 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-03-18 02:39:19 +0000 |
commit | d128126120724b3331ff23733f57194fe061b305 (patch) | |
tree | de8612bed53426236daa92fb575db368ab2e71a4 /sys/kern | |
parent | a8ba35fb0023bb456954993d3c55712666b50d13 (diff) | |
download | FreeBSD-src-d128126120724b3331ff23733f57194fe061b305.zip FreeBSD-src-d128126120724b3331ff23733f57194fe061b305.tar.gz |
Don't deny unmounting file systems for jailed processes immediately, allow
prison_priv_check() to decide what to do.
This change is suppose not to change current (security) behaviour
in any way.
This change is simlar to the change of PRIV_VFS_MOUNT in previous revision.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_mount.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 5778c9c..cd567e8 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1091,9 +1091,7 @@ unmount(td, uap) char *pathbuf; int error, id0, id1; - if (jailed(td->td_ucred)) - return (EPERM); - if (usermount == 0) { + if (jailed(td->td_ucred) || usermount == 0) { error = priv_check(td, PRIV_VFS_UNMOUNT); if (error) return (error); |