Lines Matching full:cap_p
159 cap_t cap_p;
161 cap_p = cap_get_proc();
162 if (!cap_p) {
167 cap_get_flag(cap_p, CAP_NET_RAW, CAP_PERMITTED, &cap_raw);
170 if (cap_clear(cap_p) < 0) {
175 cap_set_flag(cap_p, CAP_PERMITTED, 1, caps, CAP_SET);
177 if (cap_set_proc(cap_p) < 0) {
199 cap_free(cap_p);
208 cap_t cap_p;
213 cap_p = cap_get_proc();
214 if (!cap_p) {
219 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, caps, on ? CAP_SET : CAP_CLEAR);
221 if (cap_set_proc(cap_p) < 0) {
226 cap_free(cap_p);
249 cap_t cap_p = cap_init();
251 if (!cap_p) {
256 if (cap_set_proc(cap_p) < 0) {
261 cap_free(cap_p);