Skip to content

Conversation

tedbrandston
Copy link
Contributor

@tedbrandston tedbrandston commented Apr 10, 2025

Description

Adds the MS_NOSYMFOLLOW flag from linux/mount.h

MS_NOSYMFOLLOW (since Linux 5.10) disallows automatic following of symlinks.

Sources

https://github.com/torvalds/linux/blob/ab59a8605604f71bbbc16077270dc3f39648b7fc/include/uapi/linux/mount.h

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot
Copy link
Collaborator

rustbot commented Apr 10, 2025

r? @tgross35

rustbot has assigned @tgross35.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks fine but semver/linux.txt needs to be updated. Any reason this is marked as a draft?

@tedbrandston
Copy link
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?

@tgross35
Copy link
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
@tedbrandston
Copy link
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).

Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tgross35 tgross35 added this pull request to the merge queue Sep 2, 2025
Merged via the queue into rust-lang:main with commit 558f13c Sep 2, 2025
49 of 52 checks passed
@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Sep 19, 2025
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 tgross35 mentioned this pull request Sep 22, 2025
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)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-linux-like O-unix stable-applied This PR has been cherry-picked to libc's stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants