Skip to content

Commit 0bc957d

Browse files
committed
Add MS_NOSYMFOLLOW flag
MS_NOSYMFOLLOW (since Linux 5.10) disallows automatic following of symlinks. See: torvalds/linux@dab741e
1 parent 048162d commit 0bc957d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,7 @@ MS_NODEV
17321732
MS_NODIRATIME
17331733
MS_NOEXEC
17341734
MS_NOSUID
1735+
MS_NOSYMFOLLOW
17351736
MS_NOUSER
17361737
MS_POSIXACL
17371738
MS_PRIVATE

src/unix/linux_like/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ pub const MS_SYNCHRONOUS: c_ulong = 0x10;
662662
pub const MS_REMOUNT: c_ulong = 0x20;
663663
pub const MS_MANDLOCK: c_ulong = 0x40;
664664
pub const MS_DIRSYNC: c_ulong = 0x80;
665+
pub const MS_NOSYMFOLLOW: c_ulong = 0x100;
665666
pub const MS_NOATIME: c_ulong = 0x0400;
666667
pub const MS_NODIRATIME: c_ulong = 0x0800;
667668
pub const MS_BIND: c_ulong = 0x1000;

0 commit comments

Comments
 (0)