mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-24 02:03:54 +03:00
core: fix capability bounding set parsing
bug: CapabilityBoundingSet= doesn't reset all caps
This commit is contained in:
parent
a8107a54bd
commit
661b37b05b
@ -1023,7 +1023,7 @@ int config_parse_bounding_set(const char *unit,
|
||||
log_syntax(unit, LOG_ERR, filename, line, 0, "Trailing garbage, ignoring.");
|
||||
|
||||
capability_bounding_set = invert ? ~sum : sum;
|
||||
if (*capability_bounding_set_drop)
|
||||
if (*capability_bounding_set_drop && capability_bounding_set)
|
||||
*capability_bounding_set_drop = ~(~*capability_bounding_set_drop | capability_bounding_set);
|
||||
else
|
||||
*capability_bounding_set_drop = ~capability_bounding_set;
|
||||
|
Loading…
x
Reference in New Issue
Block a user