mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
parent
de7070b49a
commit
7dd0974620
@ -669,6 +669,12 @@ static void test_config_parse_capability_set(void) {
|
||||
assert_se(r >= 0);
|
||||
assert_se(capability_bounding_set == (make_cap(CAP_NET_RAW) | make_cap(CAP_NET_ADMIN)));
|
||||
|
||||
r = config_parse_capability_set(NULL, "fake", 1, "section", 1,
|
||||
"CapabilityBoundingSet", 0, "~CAP_NET_ADMIN",
|
||||
&capability_bounding_set, NULL);
|
||||
assert_se(r >= 0);
|
||||
assert_se(capability_bounding_set == make_cap(CAP_NET_RAW));
|
||||
|
||||
r = config_parse_capability_set(NULL, "fake", 1, "section", 1,
|
||||
"CapabilityBoundingSet", 0, "",
|
||||
&capability_bounding_set, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user