Skip to content
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

[libc] SCHED_FIFO and SCHED_RR tests fail on Arch Linux #95564

Closed
overmighty opened this issue Jun 14, 2024 · 1 comment · Fixed by #95562
Closed

[libc] SCHED_FIFO and SCHED_RR tests fail on Arch Linux #95564

overmighty opened this issue Jun 14, 2024 · 1 comment · Fixed by #95562

Comments

@overmighty
Copy link
Member

These tests fail on Arch Linux, where setting these scheduling policies succeeds even when not running as root.

See #95562.

@overmighty
Copy link
Member Author

It turns out that this is not inherently related to Arch Linux, but to usage of the realtime-privileges package and running the test as a user part of the realtime group, which allows the user to set real-time scheduling policies.

AlexisPerry pushed a commit to llvm-project-tlp/llvm-project that referenced this issue Jul 9, 2024
…95562)

Non-root users may be able to set real-time scheduling policies. Don't
expect failure to set real-time scheduling policies based on UID.
Instead, check that if it fails, it is either due to missing privileges,
or unsupported parameters if the scheduling policy is not mandated by
POSIX.

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

Successfully merging a pull request may close this issue.

2 participants