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

Backport of drivers/exec: Fix handling of capabilities for unprivileged tasks into release/1.5.x #16697

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #16643 to be assessed for backporting due to the inclusion of the label backport/1.5.x.

The below text is copied from the body of the original PR.


Currently, the exec driver is only setting the Bounding set, which is
not sufficient to actually enable the requisite capabilities for the
task process. In order for the capabilities to survive execve
performed by libcontainer, the Permitted, Inheritable, and Ambient
sets must also be set.

Per CAPABILITIES (7):

Ambient: This is a set of capabilities that are preserved across an
execve(2) of a program that is not privileged. The ambient capability
set obeys the invariant that no capability can ever be ambient if it
is not both permitted and inheritable.

Fixes: #16642

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

Successfully merging this pull request may close these issues.

None yet

2 participants