Lines Matching defs:caps
73 * C: setuid() normally, drop caps (keep CAP_SETUID)
74 * T+C: no setuid(), drop caps (don't keep CAP_SETUID)
75 * T+C+P: setuid() early, drop caps (keep CAP_SETUID)
76 * C+P: setuid() normally, drop caps (keep CAP_SETUID)
81 * caps = BIND_SERVICE + CHROOT + SETGID
83 * caps += SETUID
85 * capset(caps)
95 * caps = BIND_SERVICE
96 * capset(caps)
161 linux_setcaps(cap_t caps) {
175 cap.effective = caps;
176 cap.permitted = caps;
180 if (cap_set_proc(caps) < 0) {
199 err = cap_set_flag(caps, CAP_EFFECTIVE, 1, &capval, CAP_SET); \
205 err = cap_set_flag(caps, CAP_PERMITTED, 1, &capval, CAP_SET); \
214 caps = cap_init(); \
215 if (caps == NULL) { \
227 cap_free(caps); \
231 #define SET_CAP(flag) do { caps |= (1 << (flag)); } while (0)
232 #define INIT_CAP do { caps = 0; } while (0)
237 cap_t caps;
298 linux_setcaps(caps);
307 cap_t caps;
335 linux_setcaps(caps);