diff options
author | Ross Zwisler <zwisler@chromium.org> | 2020-09-04 10:12:03 -0600 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-11-06 07:40:06 +0100 |
commit | 527375b2c71590d5235fbc1cd61e4d77f7a3a385 (patch) | |
tree | 30e9a44a2a8aad0b3d3d2bb97f9812e28e2a23c8 | |
parent | d98b1454fc767b99e9e22f6240ace32c9474ee00 (diff) | |
download | man-pages-527375b2c71590d5235fbc1cd61e4d77f7a3a385.tar.gz |
mount.2, statfs.2: Add NOSYMFOLLOW flags to mount(2) and statfs(2)
Signed-off-by: Ross Zwisler <zwisler@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r-- | man2/mount.2 | 10 | ||||
-rw-r--r-- | man2/statfs.2 | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/man2/mount.2 b/man2/mount.2 index 4ff7be49cf..dcc873e605 100644 --- a/man2/mount.2 +++ b/man2/mount.2 @@ -280,6 +280,16 @@ the flag to .BR open (2) was specified for all file opens to this filesystem). +.TP +.B MS_NOSYMFOLLOW +Do not follow symlinks when resolving paths. Symlinks can still be created, +and +.BR readlink (1), +.BR readlink (2), +.BR realpath (1) +and +.BR realpath (3) +all still work properly. .PP From Linux 2.4 onward, some of the above flags are settable on a per-mount basis, diff --git a/man2/statfs.2 b/man2/statfs.2 index 0fc537c14d..d5edf2a506 100644 --- a/man2/statfs.2 +++ b/man2/statfs.2 @@ -206,6 +206,10 @@ Writes are synched to the filesystem immediately (see the description of .B O_SYNC in .BR open (2)). +.TP +.B ST_NOSYMFOLLOW +Symlinks are not followed when resolving paths; see +.BR mount (2). .PP Nobody knows what .I f_fsid |