View | Details | Raw Unified | Return to bug 42651 | Differences between
and this patch

Collapse All | Expand All

(-)src/lib/libc/sys/mount.2 (-4 / +16 lines)
Lines 74-79 Link Here
74
of a successful mount are swept under the carpet so to speak, and
74
of a successful mount are swept under the carpet so to speak, and
75
are unavailable until the filesystem is unmounted.
75
are unavailable until the filesystem is unmounted.
76
.Pp
76
.Pp
77
By default only the super-user may call the
78
.Fn mount
79
function. This restriction can be removed by setting the sysctl
80
.Em vfs.usermount
81
to a non-zero value.
82
.Pp
77
The following
83
The following
78
.Ar flags
84
.Ar flags
79
may be specified to
85
may be specified to
Lines 87-97 Link Here
87
.It Dv MNT_NOEXEC
93
.It Dv MNT_NOEXEC
88
Do not allow files to be executed from the filesystem.
94
Do not allow files to be executed from the filesystem.
89
.It Dv MNT_NOSUID
95
.It Dv MNT_NOSUID
90
Do not honor setuid or setgid bits on files when executing them.
96
Do not honor setuid or setgid bits on files when executing them. This flag is
97
automatically set when the caller is not the super-user.
91
.It Dv MNT_NOATIME
98
.It Dv MNT_NOATIME
92
Disable update of file access times.
99
Disable update of file access times.
93
.It Dv MNT_NODEV
100
.It Dv MNT_NODEV
94
Do not interpret special files on the filesystem.
101
Do not interpret special files on the filesystem. This flag is automatically
102
set when the caller is not the super-user.
95
.It Dv MNT_SUIDDIR
103
.It Dv MNT_SUIDDIR
96
Directories with the SUID bit set chown new files to their own owner.
104
Directories with the SUID bit set chown new files to their own owner.
97
.It Dv MNT_SYNCHRONOUS
105
.It Dv MNT_SYNCHRONOUS
Lines 176-182 Link Here
176
function will fail when one of the following occurs:
184
function will fail when one of the following occurs:
177
.Bl -tag -width Er
185
.Bl -tag -width Er
178
.It Bq Er EPERM
186
.It Bq Er EPERM
179
The caller is not the super-user.
187
The caller is not the super-user and not the owner of
188
.Ar dir .
180
.It Bq Er ENAMETOOLONG
189
.It Bq Er ENAMETOOLONG
181
A component of a pathname exceeded 255 characters,
190
A component of a pathname exceeded 255 characters,
182
or the entire length of a path name exceeded 1023 characters.
191
or the entire length of a path name exceeded 1023 characters.
Lines 253-259 Link Here
253
function may fail with one of the following errors:
262
function may fail with one of the following errors:
254
.Bl -tag -width Er
263
.Bl -tag -width Er
255
.It Bq Er EPERM
264
.It Bq Er EPERM
256
The caller is not the super-user.
265
The caller is not the super-user and not the user that issued the corresponding
266
.Xr mount 2
267
call.
257
.It Bq Er ENOTDIR
268
.It Bq Er ENOTDIR
258
A component of the path is not a directory.
269
A component of the path is not a directory.
259
.It Bq Er ENAMETOOLONG
270
.It Bq Er ENAMETOOLONG
Lines 280-285 Link Here
280
.Sh SEE ALSO
291
.Sh SEE ALSO
281
.Xr lsvfs 1 ,
292
.Xr lsvfs 1 ,
282
.Xr mount 8 ,
293
.Xr mount 8 ,
294
.Xr sysctl 8 ,
283
.Xr umount 8
295
.Xr umount 8
284
.Sh BUGS
296
.Sh BUGS
285
Some of the error codes need translation to more obvious messages.
297
Some of the error codes need translation to more obvious messages.

Return to bug 42651