Skip to content

libc: add MS_NOSYMFOLLOW support #1471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cyphar
Copy link

@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>
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.

1 participant