HardenedBSD/sbin/mount
Pawel Jakub Dawidek dc9c6194b5 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)
2004-02-02 18:37:30 +00:00
..
extern.h
getmntopts.3
getmntopts.c Style change 2003-12-07 23:02:16 +00:00
Makefile style.Makefile: Add a '?' before '=' in WARNS. 2003-10-26 00:35:05 +00:00
mntopts.h
mount_ufs.c
mount.8 Style(9) option sorting 2004-01-29 15:14:03 +00:00
mount.c Made use of MNT_USER flag and inform about user responsible for mount 2004-02-02 18:37:30 +00:00
pathnames.h
vfslist.c