Sun Jun 18 18:16:40 2023 UTC ()
sysctl(7): Note nodev,nosuid requirement for user-mounted fs.

While here, tidy up language and markup a smidge.


(riastradh)
diff -r1.164 -r1.165 src/share/man/man7/sysctl.7

cvs diff -r1.164 -r1.165 src/share/man/man7/sysctl.7 (expand / switch to context diff)
--- src/share/man/man7/sysctl.7 2023/05/29 23:30:47 1.164
+++ src/share/man/man7/sysctl.7 2023/06/18 18:16:40 1.165
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sysctl.7,v 1.164 2023/05/29 23:30:47 gutteridge Exp $
+.\"	$NetBSD: sysctl.7,v 1.165 2023/06/18 18:16:40 riastradh Exp $
 .\"
 .\" Copyright (c) 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -142,13 +142,24 @@
 Returns configuration information about the file system type given as a fourth
 level identifier.
 .It Li vfs.generic.usermount ( Dv VFS_USERMOUNT )
-Determines if non superuser mounts are allowed, defaults to
-.Dv 0 .
+Controls whether users other than the super-user can mount file
+systems.
+Defaults to
+.Li 0 ,
+so only the super-user can mount file systems.
+.Pp
+File systems mounted by unprivileged users must be mounted with the
+.Li nodev
+and
+.Li nosuid
+.Xr mount 8
+options.
 .It Li vfs.generic.magiclinks ( Dv VFS_MAGICLINKS )
-Controls if expansion of variables is going to be performed on pathnames
-or not.
-Defaults to no variable expansion,
-.Dv 0 .
+Controls whether expansion of variables is going to be performed on
+pathnames or not.
+Defaults to
+.Li 0 ,
+no variable expansion.
 Variables are of the form
 .Li @name
 and the variables supported are described in