Home
last modified time | relevance | path

Searched refs:cap_set_flag (Results 1 – 11 of 11) sorted by relevance

/external/avahi/avahi-daemon/
Dcaps.c48 cap_set_flag(caps, CAP_EFFECTIVE, 3, cap_values, CAP_SET); in avahi_caps_reduce()
49 cap_set_flag(caps, CAP_PERMITTED, 3, cap_values, CAP_SET); in avahi_caps_reduce()
86 cap_set_flag(caps, CAP_EFFECTIVE, 1, cap_values, CAP_SET); in avahi_caps_reduce2()
87 cap_set_flag(caps, CAP_PERMITTED, 1, cap_values, CAP_SET); in avahi_caps_reduce2()
/external/iputils/ninfod/
Dninfod.c526 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_net_raw, CAP_SET); in limit_capabilities()
527 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap_net_raw, CAP_SET); in limit_capabilities()
532 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_setuid, CAP_SET); in limit_capabilities()
565 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_setuid, CAP_SET); in drop_capabilities()
566 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap_setuid, CAP_SET); in drop_capabilities()
/external/libcap/progs/
Dcapsh.c75 if (cap_set_flag(raised_for_setpcap, CAP_EFFECTIVE, 1, in main()
142 && (cap_set_flag(raised_for_setpcap, CAP_EFFECTIVE, 1, in main()
204 && (cap_set_flag(raised_for_setpcap, CAP_EFFECTIVE, 1, in main()
264 if (cap_set_flag(raised_for_chroot, CAP_EFFECTIVE, 1, raise_chroot, in main()
Dsetcap.c159 if (cap_set_flag(mycaps, CAP_EFFECTIVE, 1, &capflag, CAP_SET) in main()
/external/libcap/doc/
DMakefile10 cap_clear.3 cap_clear_flag.3 cap_get_flag.3 cap_set_flag.3 \
/external/libcap/libcap/include/sys/
Dcapability.h77 extern int cap_set_flag(cap_t, cap_flag_t, int, const cap_value_t *,
/external/libcap/libcap/
Dcap_flag.c39 int cap_set_flag(cap_t cap_d, cap_flag_t set, in cap_set_flag() function
/external/minijail/
Dlibminijail.c1223 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, flag, CAP_SET)) in drop_caps()
1225 if (cap_set_flag(caps, CAP_PERMITTED, 1, flag, CAP_SET)) in drop_caps()
1227 if (cap_set_flag(caps, CAP_INHERITABLE, 1, flag, CAP_SET)) in drop_caps()
1249 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, flag, CAP_CLEAR)) in drop_caps()
1251 if (cap_set_flag(caps, CAP_PERMITTED, 1, flag, CAP_CLEAR)) in drop_caps()
1253 if (cap_set_flag(caps, CAP_INHERITABLE, 1, flag, CAP_CLEAR)) in drop_caps()
/external/iputils/
Dping_common.c97 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_admin, CAP_SET); in limit_capabilities()
103 cap_set_flag(cap_p, CAP_PERMITTED, 1, &cap_raw, CAP_SET); in limit_capabilities()
157 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &cap, on); in modify_capability()
Darping.c175 cap_set_flag(cap_p, CAP_PERMITTED, 1, caps, CAP_SET); in limit_capabilities()
219 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, caps, on ? CAP_SET : CAP_CLEAR); in modify_capability_raw()
/external/libchrome/sandbox/linux/services/
Dcredentials_unittest.cc236 PCHECK(cap_set_flag(expected_cap.get(), flag, 1, &allowed_cap, CAP_SET) == in SANDBOX_TEST()