Home
last modified time | relevance | path

Searched refs:CAP_CLEAR (Results 1 – 18 of 18) sorted by relevance

/external/iputils/
Dping_common.c93 cap_ok = CAP_CLEAR; in limit_capabilities()
96 if (cap_ok != CAP_CLEAR) in limit_capabilities()
99 cap_ok = CAP_CLEAR; in limit_capabilities()
102 if (cap_ok != CAP_CLEAR) in limit_capabilities()
150 cap_ok = CAP_CLEAR; in modify_capability()
152 if (cap_ok == CAP_CLEAR) { in modify_capability()
Dping_common.h266 static inline int disable_capability_raw(void) { return modify_capability(CAP_NET_RAW, CAP_CLEAR in disable_capability_raw()
268 … inline int disable_capability_admin(void) { return modify_capability(CAP_NET_ADMIN, CAP_CLEAR); }; in disable_capability_admin()
Darping.c153 static cap_flag_value_t cap_raw = CAP_CLEAR;
169 if (cap_raw != CAP_CLEAR) { in limit_capabilities()
219 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, caps, on ? CAP_SET : CAP_CLEAR); in modify_capability_raw()
/external/libcap/libcap/
Dcap_flag.c28 *raised = isset_cap(cap_d,value,set) ? CAP_SET:CAP_CLEAR; in cap_get_flag()
52 && (raise == CAP_SET || raise == CAP_CLEAR) ) { in cap_set_flag()
Dcap_proc.c320 case CAP_CLEAR: in _cap_set_ambient()
/external/ltp/testcases/kernel/security/cap_bound/
Dcheck_pe.c74 if (f == CAP_CLEAR) { in main()
Dexec_without_inh.c56 ret = cap_set_flag(cur, CAP_INHERITABLE, 1, v, CAP_CLEAR); in main()
Dcap_bset_inh_bounds.c103 ret = cap_set_flag(tmpcap, CAP_INHERITABLE, 1, v, CAP_CLEAR); in main()
/external/iputils/ninfod/
Dninfod.c525 if (cap_ok != CAP_CLEAR) { in limit_capabilities()
531 if (cap_ok != CAP_CLEAR) in limit_capabilities()
564 if (cap_ok != CAP_CLEAR) { in drop_capabilities()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dbind_perm.c94 cap_was_effective = cap_net_bind_service(CAP_CLEAR); in test_bind_perm()
/external/ltp/testcases/kernel/syscalls/pivot_root/
Dpivot_root01.c83 if (cap_set_flag(cap, CAP_EFFECTIVE, 1, cap_value, CAP_CLEAR)) in drop_cap_sys_admin()
/external/libcap/tests/
Duns_test.c67 cap_set_flag(orig, CAP_EFFECTIVE, 1, &fscap, CAP_CLEAR); in main()
/external/linux-kselftest/tools/testing/selftests/landlock/
Dcommon.h178 _effective_cap(_metadata, caps, CAP_CLEAR); in clear_cap()
/external/libcap/libcap/include/sys/
Dcapability.h93 CAP_CLEAR=0, /* The flag is cleared/disabled */ enumerator
/external/libcap/progs/
Dcapsh.c304 set == CAP_CLEAR ? "clear":"raise", name_ptr); in arg_change_amb()
339 set == CAP_CLEAR ? "clear":"raise", ptr, cap); in arg_change_amb()
468 arg_change_amb(argv[i]+9, CAP_CLEAR); in main()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c961 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, &cap_sys_admin, CAP_CLEAR)) { in set_admin()
966 admin ? CAP_SET : CAP_CLEAR)) { in set_admin()
1262 cap_flag_value_t net_priv = CAP_CLEAR; in is_admin()
/external/bpftool/src/
Dfeature.c968 CAP_CLEAR)) { in handle_perms()
/external/minijail/
Dlibminijail.c2359 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, flag, CAP_CLEAR)) in drop_caps()
2361 if (cap_set_flag(caps, CAP_PERMITTED, 1, flag, CAP_CLEAR)) in drop_caps()
2363 if (cap_set_flag(caps, CAP_INHERITABLE, 1, flag, CAP_CLEAR)) in drop_caps()