FreeBSD Bugzilla – Attachment 25011 Details for
Bug 42651
[PATCH] mount([28]) do not document vfs.usermount
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.15 KB, created by
Thomas-Martin Seck
on 2002-09-11 09:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Thomas-Martin Seck
Created:
2002-09-11 09:40:01 UTC
Size:
2.15 KB
patch
obsolete
>Index: src/lib/libc/sys/mount.2 >=================================================================== >RCS file: /home/ncvs/src/lib/libc/sys/mount.2,v >retrieving revision 1.28 >diff -u -r1.28 mount.2 >--- src/lib/libc/sys/mount.2 1 Oct 2001 16:09:02 -0000 1.28 >+++ src/lib/libc/sys/mount.2 11 Sep 2002 07:48:02 -0000 >@@ -74,6 +74,12 @@ > of a successful mount are swept under the carpet so to speak, and > are unavailable until the filesystem is unmounted. > .Pp >+By default only the super-user may call the >+.Fn mount >+function. This restriction can be removed by setting the sysctl >+.Em vfs.usermount >+to a non-zero value. >+.Pp > The following > .Ar flags > may be specified to >@@ -87,11 +93,13 @@ > .It Dv MNT_NOEXEC > Do not allow files to be executed from the filesystem. > .It Dv MNT_NOSUID >-Do not honor setuid or setgid bits on files when executing them. >+Do not honor setuid or setgid bits on files when executing them. This flag is >+automatically set when the caller is not the super-user. > .It Dv MNT_NOATIME > Disable update of file access times. > .It Dv MNT_NODEV >-Do not interpret special files on the filesystem. >+Do not interpret special files on the filesystem. This flag is automatically >+set when the caller is not the super-user. > .It Dv MNT_SUIDDIR > Directories with the SUID bit set chown new files to their own owner. > .It Dv MNT_SYNCHRONOUS >@@ -176,7 +184,8 @@ > function will fail when one of the following occurs: > .Bl -tag -width Er > .It Bq Er EPERM >-The caller is not the super-user. >+The caller is not the super-user and not the owner of >+.Ar dir . > .It Bq Er ENAMETOOLONG > A component of a pathname exceeded 255 characters, > or the entire length of a path name exceeded 1023 characters. >@@ -253,7 +262,9 @@ > function may fail with one of the following errors: > .Bl -tag -width Er > .It Bq Er EPERM >-The caller is not the super-user. >+The caller is not the super-user and not the user that issued the corresponding >+.Xr mount 2 >+call. > .It Bq Er ENOTDIR > A component of the path is not a directory. > .It Bq Er ENAMETOOLONG >@@ -280,6 +291,7 @@ > .Sh SEE ALSO > .Xr lsvfs 1 , > .Xr mount 8 , >+.Xr sysctl 8 , > .Xr umount 8 > .Sh BUGS > Some of the error codes need translation to more obvious messages.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42651
: 25011 |
25012