Searched defs:after_cap (Results 1 - 1 of 1) sorted by relevance

/systemd/src/basic/
H A Dcapability-util.c153 _cleanup_cap_free_ cap_t after_cap = NULL; local
163 after_cap = cap_get_proc();
164 if (!after_cap)
167 if (cap_get_flag(after_cap, CAP_SETPCAP, CAP_EFFECTIVE, &fv) < 0)
174 temp_cap = cap_dup(after_cap);
206 if (cap_set_flag(after_cap, CAP_INHERITABLE, 1, &v, CAP_CLEAR) < 0) {
214 if (cap_set_flag(after_cap, CAP_PERMITTED, 1, &v, CAP_CLEAR) < 0 ||
215 cap_set_flag(after_cap, CAP_EFFECTIVE, 1, &v, CAP_CLEAR) < 0) {
226 if (cap_set_proc(after_cap) < 0)

Completed in 14 milliseconds