Home
last modified time | relevance | path

Searched refs:caps (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/test/
Dtest-capability.c86 cap_t caps; in show_capabilities() local
89 caps = cap_get_proc(); in show_capabilities()
90 assert_se(caps); in show_capabilities()
92 text = cap_to_text(caps, NULL); in show_capabilities()
96 cap_free(caps); in show_capabilities()
186 cap_t caps; in test_update_inherited_set() local
190 caps = cap_get_proc(); in test_update_inherited_set()
191 assert_se(caps); in test_update_inherited_set()
195 assert_se(!capability_update_inherited_set(caps, set)); in test_update_inherited_set()
196 assert_se(!cap_get_flag(caps, CAP_CHOWN, CAP_INHERITABLE, &fv)); in test_update_inherited_set()
[all …]
/systemd-251/src/basic/
Dcapability-util.c86 int capability_update_inherited_set(cap_t caps, uint64_t set) { in capability_update_inherited_set() argument
96 if (cap_set_flag(caps, CAP_INHERITABLE, 1, &v, flag) < 0) in capability_update_inherited_set()
104 _cleanup_cap_free_ cap_t caps = NULL; in capability_ambient_set_apply() local
128 caps = cap_get_proc(); in capability_ambient_set_apply()
129 if (!caps) in capability_ambient_set_apply()
132 r = capability_update_inherited_set(caps, set); in capability_ambient_set_apply()
136 if (cap_set_proc(caps) < 0) in capability_ambient_set_apply()
165 _cleanup_cap_free_ cap_t caps = NULL; in capability_gain_cap_setpcap() local
167 caps = cap_get_proc(); in capability_gain_cap_setpcap()
168 if (!caps) in capability_gain_cap_setpcap()
[all …]
Dcapability-util.h22 int capability_update_inherited_set(cap_t caps, uint64_t ambient_set);
41 static inline bool cap_test_all(uint64_t caps) { in cap_test_all() argument
42 return FLAGS_SET(caps, all_capabilities()); in cap_test_all()
/systemd-251/test/units/
Dtestsuite-43.sh83 runas testuser systemd-run --wait --user --unit=test-caps \
/systemd-251/
DTODO664 * userdb: add field for ambient caps, so that a user can have CAP_WAKE_ALARM
665 for example. And add code that resets ambient caps for all services by
Dmeson.build692 error('POSIX caps headers not found')