Skip to content

Conversation

cyphar
Copy link
Contributor

@cyphar cyphar commented May 30, 2025

Linux platforms that are forced to use the libc backend cannot access
MS_NOSYMFOLLOW. The upstream libc crate doesn't expose MS_NOSYMFOLLOW,
but on Linux we can just remap linux-raw-sys.

FreeBSD also has nosymfollow support in the form of MNT_NOSYMFOLLOW, but
rustix::mount is not provided for FreeBSD.

Signed-off-by: Aleksa Sarai cyphar@cyphar.com

Linux platforms that are forced to use the libc backend cannot access
MS_NOSYMFOLLOW. The upstream libc crate doesn't expose MS_NOSYMFOLLOW,
but on Linux we can just remap linux-raw-sys.

FreeBSD also has nosymfollow support in the form of MNT_NOSYMFOLLOW, but
rustix::mount is not provided for FreeBSD.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
@sunfishcode sunfishcode merged commit 7798f03 into bytecodealliance:main Sep 9, 2025
39 of 51 checks passed
@sunfishcode
Copy link
Member

Thanks!

@cyphar cyphar deleted the libc-msnosymfollow branch September 9, 2025 06:20
@sunfishcode
Copy link
Member

This is now released in rustix 1.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants