bytecodealliance / bytecodealliance/rustix

set_no_new_privs should not take an argument

Open
#1,450 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.