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

Clear ambient inherited #14133

Merged
merged 3 commits into from
Dec 4, 2019
Merged

Commits on Nov 26, 2019

  1. basic: Drop ambient inherited capabilities by default

    Modify the functions capability_update_inherited_set() and
    capability_ambient_set_apply() to drop capabilities not explicitly
    requested by the user.
    kkuehlz committed Nov 26, 2019
    Configuration menu
    Copy the full SHA
    82d832b View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2019

  1. test-capability: Modify ambient capability tests to test clearing caps

    Change test_set_ambient_caps() to test_apply_ambient_caps(), since the
    function capability_ambient_set_apply() not only sets ambient
    capabilities, but clears inherited capabilities that are not explicitly
    requested by the caller.
    kkuehlz committed Nov 27, 2019
    Configuration menu
    Copy the full SHA
    155a623 View commit details
    Browse the repository at this point in the history
  2. execute: Call capability_ambient_set_apply even if ambient set is 0

    The function capability_ambient_set_apply() now drops capabilities not
    in the capability_ambient_set(), so it is necessary to call it when
    the ambient set is empty.
    
    Fixes systemd#13163
    kkuehlz committed Nov 27, 2019
    Configuration menu
    Copy the full SHA
    943800f View commit details
    Browse the repository at this point in the history