From d254c0ab8c678b35fcd4f412f814adce98b13a12 Mon Sep 17 00:00:00 2001 From: Ross Zwisler Date: Tue, 25 Feb 2020 13:03:30 -0700 Subject: [PATCH] Add NOSYMFOLLOW flags to mount(2) and statfs(2) Signed-off-by: Ross Zwisler --- man2/mount.2 | 10 ++++++++++ man2/statfs.2 | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/man2/mount.2 b/man2/mount.2 index f565ee5788..039e4b83ba 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