Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not try to acquire capabilities we are not allowed to (#2000)
Currently reset_effective tries to acquire all know capabilities from a hardcoded list. According to https://man7.org/linux/man-pages/man7/capabilities.7.html only capabilities in the permitted set can be acquired. Trying to acquire a capability beyond those in the permitted set will result in EPERM (see https://man7.org/linux/man-pages/man2/capset.2.html). This change modifies reset_effective so that it only acquires the capabilities in the permitted set. Signed-off-by: Jorge Prendes <[email protected]>
- Loading branch information