Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NOSYMFOLLOW flags to mount(2) and statfs(2) #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions man2/mount.2
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions man2/statfs.2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down