Skip to content

Several fixes for Linux/musl/s390x #4549

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 6 commits into
base: main
Choose a base branch
from

Conversation

neuschaefer
Copy link
Contributor

Description

This PR updates several APIs with respect to their definitions in musl-libc.

Sources

Links are included in the commit messages.

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

@neuschaefer
Copy link
Contributor Author

@tgross35 I probably missed some of the finer details of version tracking in the libc crate. I'm looking forward to your (and/or someone else's) review

statfs64 is the same as statfs on musl-libc, so it needs the same
adjustment.

https://git.musl-libc.org/cgit/musl/tree/include/sys/statfs.h#n21
glibc provides these symbols, but musl does not.
musl-libc does not implement sysctl.
SYS_mseal is not yet defined in musl-libc, but it can only take one
possible value, dictated by the kernel's syscall ABI.
Linux 6.14 added two flags to SECURE_ALL_BITS, namely
SECURE_EXEC_RESTRICT_FILE and SECURE_EXEC_DENY_INTERACTIVE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants