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

drivers/exec: Fix handling of capabilities for unprivileged tasks #16643

Merged
merged 3 commits into from
Mar 28, 2023

Commits on Mar 24, 2023

  1. drivers/exec: Fix handling of capabilities for unprivileged tasks

    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: hashicorp#16642
    elprans committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    559b360 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

  1. Fix test

    elprans committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    8bf0677 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d626fed View commit details
    Browse the repository at this point in the history