cvs commit: src/sbin/mount mount.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Feb 2 10:39:28 PST 2004


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


More information about the cvs-src mailing list