diff --git a/Cargo.toml b/Cargo.toml index bcca102820..5c5fdd6af6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ targets = [ ] [dependencies] -libc = { version = "=0.2.175", features = ["extra_traits"] } +libc = { version = "=0.2.176", features = ["extra_traits"] } bitflags = "2.3.3" cfg-if = "1.0" pin-utils = { version = "0.1.0", optional = true } diff --git a/changelog/2685.added.md b/changelog/2685.added.md new file mode 100644 index 0000000000..f34630f8fd --- /dev/null +++ b/changelog/2685.added.md @@ -0,0 +1 @@ +Added MS_NOSYMFOLLOW flag, a mount option on linux which disallows automatic following of symlinks. diff --git a/src/mount/linux.rs b/src/mount/linux.rs index 3c27150761..5fb38a7438 100644 --- a/src/mount/linux.rs +++ b/src/mount/linux.rs @@ -21,6 +21,8 @@ libc_bitflags!( MS_MANDLOCK; /// Directory modifications are synchronous MS_DIRSYNC; + /// Do not follow symlinks + MS_NOSYMFOLLOW; /// Do not update access times MS_NOATIME; /// Do not update directory access times