Date: Mon, 2 Feb 2004 10:37:30 -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/sbin/mount mount.c Message-ID: <200402021837.i12IbUwN022952@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2004/02/02 10:37:30 PST
FreeBSD src repository
Modified files:
sbin/mount mount.c
Log:
Made use of MNT_USER flag and inform about user responsible for mount
in those cases:
1. File system was mounted by an unprivileged user.
2. File system was mounted by an unprivileged root user.
3. File system was mounted by a privileged non-root user.
Point 1 is when file system was mounted by unprivileged user
(sysctl vfs.usermount was equal to 1 then).
Point 2 is when file system was mounted by root, while sysctl
security.bsd.suser_enabled is set to 0 and sysctl vfs.usermount
is set to 1.
Point 3 is because we want to be ready for capabilities.
Reviewed by: rwatson
Approved by: scottl (mentor)
Revision Changes Path
1.62 +5 -1 src/sbin/mount/mount.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402021837.i12IbUwN022952>
