Skip to content

Commit ac757af

Browse files
tedbrandstontgross35
authored andcommitted
Add MS_NOSYMFOLLOW flag
MS_NOSYMFOLLOW (since Linux 5.10) disallows automatic following of symlinks. See: torvalds/linux@dab741e (backport <rust-lang#4389>) (cherry picked from commit 558f13c)
1 parent e55067c commit ac757af

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
@@ -627,6 +627,7 @@ pub const MS_SYNCHRONOUS: c_ulong = 0x10;
627627
pub const MS_REMOUNT: c_ulong = 0x20;
628628
pub const MS_MANDLOCK: c_ulong = 0x40;
629629
pub const MS_DIRSYNC: c_ulong = 0x80;
630+
pub const MS_NOSYMFOLLOW: c_ulong = 0x100;
630631
pub const MS_NOATIME: c_ulong = 0x0400;
631632
pub const MS_NODIRATIME: c_ulong = 0x0800;
632633
pub const MS_BIND: c_ulong = 0x1000;

0 commit comments

Comments
 (0)