bytecodealliance / bytecodealliance/rustix
set_no_new_privs should not take an argument
Open
semver bump
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 294
- Avg merge
- 4h 7m
- Merged PRs (30d)
- 2
Description
NNP can not be unset, hence `set_no_new_privs(false)` does semantically makes no sense.
Also manpages says:
> `int prctl(PR_SET_NO_NEW_PRIVS, 1L, 0L, 0L, 0L);`
> …
> **EINVAL** The second argument is not equal to 1L.
---
@sunfishcode can you add `semver bump` label
Contributor guide
Assessment
This issue has not been assessed yet.