diff options
author | Kevin Kuehler <keur@xcf.berkeley.edu> | 2020-03-27 23:57:02 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-03-29 21:11:25 +0200 |
commit | 7ea4392f1e444388caa706d6bd64fb7b30dc2903 (patch) | |
tree | 209e32be4842a8662a82db5f02ca8b99b5ee5cdf /README.md | |
parent | Merge pull request #15233 from msekletar/device-dbus (diff) | |
download | systemd-7ea4392f1e444388caa706d6bd64fb7b30dc2903.tar.xz systemd-7ea4392f1e444388caa706d6bd64fb7b30dc2903.zip |
basic: Fix capability_ambient_set_apply for kernels < 4.3
https://github.com/systemd/systemd/pull/14133 made
capability_ambient_set_apply() acquire capabilities that were explicitly
asked for and drop all others. This change means the function is called
even with an empty capability set, opening up a code path for users
without ambient capabilities to call this function. This function will
error with EINVAL out on kernels < 4.3 because PR_CAP_AMBIENT is not
understood. This turns capability_ambient_set_apply() into a noop for
kernels < 4.3
Fixes https://github.com/systemd/systemd/issues/15225
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions