Date: Mon, 2 Feb 2004 11:02:05 -0800 (PST) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_mount.c Message-ID: <200402021902.i12J25GL028606@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2004/02/02 11:02:05 PST
FreeBSD src repository
Modified files:
sys/kern vfs_mount.c
Log:
Fix many issues related to mount/unmount:
1. Root from inside a jail was able to unmount any file system
(except /).
2. Unprivileged root was able to unmount file systems mounted by
privileged root (execpt /).
3. User from inside a jail was able to mount file system when
sysctl vfs.usermount was set to 1.
4. User was able to mount file system when vfs.usermount was set to 1
(that's ok) and unmount it even if vfs.usermount was equal to 0
(that's not correct).
Possibility from point 1 was reported by: Dariusz Kowalski <darek@76.pl>
Only a part of this fix will be MFC'ed (if approved).
PR: kern/60149
Reviewed by: rwatson
Approved by: scottl (mentor)
MFC after: 3 days
Revision Changes Path
1.118 +33 -8 src/sys/kern/vfs_mount.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402021902.i12J25GL028606>
