Lines Matching defs:caps
78 * C: setuid() normally, drop caps (keep CAP_SETUID)
79 * T+C: no setuid(), drop caps (don't keep CAP_SETUID)
80 * T+C+P: setuid() early, drop caps (keep CAP_SETUID)
81 * C+P: setuid() normally, drop caps (keep CAP_SETUID)
86 * caps = BIND_SERVICE + CHROOT + SETGID
88 * caps += SETUID
90 * capset(caps)
100 * caps = BIND_SERVICE
101 * capset(caps)
166 linux_setcaps(cap_t caps) {
180 cap.effective = caps;
181 cap.permitted = caps;
185 if (cap_set_proc(caps) < 0) {
204 err = cap_set_flag(caps, CAP_EFFECTIVE, 1, &capval, CAP_SET); \
210 err = cap_set_flag(caps, CAP_PERMITTED, 1, &capval, CAP_SET); \
219 caps = cap_init(); \
220 if (caps == NULL) { \
232 cap_free(caps); \
236 #define SET_CAP(flag) do { caps |= (1 << (flag)); } while (0)
237 #define INIT_CAP do { caps = 0; } while (0)
242 cap_t caps;
297 linux_setcaps(caps);
306 cap_t caps;
334 linux_setcaps(caps);