Add MS_NOSYMFOLLOW flag#4389
Merged
tgross35 merged 1 commit intorust-lang:mainfrom Sep 2, 2025
Merged
Conversation
Collaborator
tgross35
requested changes
Apr 10, 2025
Contributor
tgross35
left a comment
There was a problem hiding this comment.
The change looks fine but semver/linux.txt needs to be updated. Any reason this is marked as a draft?
Contributor
Author
|
The template said to mark it as a draft if you weren't sure about the checklist items. I'll take a look at updating the semver, but won't have a chance to test locally for a while. Is local testing necessary for a change like this? |
Contributor
|
It's usually good to run locally if possible but don't worry about it here, CI covers testing for this platform. Just update the semver file and squash and this should be good to go. |
MS_NOSYMFOLLOW (since Linux 5.10) disallows automatic following of symlinks. See: torvalds/linux@dab741e
9239e8d to
0bc957d
Compare
Contributor
Author
|
Looks like the freebsd failures are present on other recent PRs. I've updated linux.txt and run the tests locally (they pass). |
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Sep 22, 2025
MS_NOSYMFOLLOW (since Linux 5.10) disallows automatic following of symlinks. See: torvalds/linux@dab741e (backport <rust-lang#4389>) (cherry picked from commit 558f13c)
Merged
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Sep 22, 2025
MS_NOSYMFOLLOW (since Linux 5.10) disallows automatic following of symlinks. See: torvalds/linux@dab741e (backport <rust-lang#4389>) (cherry picked from commit 558f13c)
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Sep 22, 2025
MS_NOSYMFOLLOW (since Linux 5.10) disallows automatic following of symlinks. See: torvalds/linux@dab741e (backport <rust-lang#4389>) (cherry picked from commit 558f13c)
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Sep 22, 2025
MS_NOSYMFOLLOW (since Linux 5.10) disallows automatic following of symlinks. See: torvalds/linux@dab741e (backport <rust-lang#4389>) (cherry picked from commit 558f13c)
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Sep 22, 2025
MS_NOSYMFOLLOW (since Linux 5.10) disallows automatic following of symlinks. See: torvalds/linux@dab741e (backport <#4389>) (cherry picked from commit 558f13c)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the
MS_NOSYMFOLLOWflag from linux/mount.hMS_NOSYMFOLLOW (since Linux 5.10) disallows automatic following of symlinks.
Sources
https://github.com/torvalds/linux/blob/ab59a8605604f71bbbc16077270dc3f39648b7fc/include/uapi/linux/mount.h
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI