Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/containers/userns/
Duserns06_capcheck.c57 cap_get_flag(caps, i, CAP_EFFECTIVE, &flag_val); in main()
60 cap_get_flag(caps, i, CAP_PERMITTED, &flag_val); in main()
Duserns01.c74 cap_get_flag(caps, i, CAP_EFFECTIVE, &flag_val); in child_fn1()
77 cap_get_flag(caps, i, CAP_PERMITTED, &flag_val); in child_fn1()
/external/libcap/progs/
Dsetcap.c222 cap_get_flag(cap_d, cap, CAP_PERMITTED, &per_state) != -1; in main()
226 cap_get_flag(cap_d, cap, CAP_INHERITABLE, &inh_state); in main()
227 cap_get_flag(cap_d, cap, CAP_EFFECTIVE, &eff_state); in main()
Dcapsh.c852 if (cap_get_flag(orig, cap, CAP_PERMITTED, &enabled) || !enabled) { in main()
868 if (cap_get_flag(orig, cap, CAP_INHERITABLE, &enabled) in main()
/external/ltp/testcases/kernel/security/cap_bound/
Dcap_bset_inh_bounds.c75 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_INHERITABLE, &f); in main()
92 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_INHERITABLE, &f); in main()
Dcheck_pe.c60 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_EFFECTIVE, &f); in main()
Dexec_with_inh.c67 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_INHERITABLE, &f); in main()
Dexec_without_inh.c53 ret = cap_get_flag(cur, CAP_SYS_ADMIN, CAP_INHERITABLE, &f); in main()
/external/libcap/doc/
DMakefile10 cap_clear.3 cap_clear_flag.3 cap_get_flag.3 cap_set_flag.3 \
/external/ltp/testcases/kernel/security/securebits/
Dcheck_keepcaps.c40 ret = cap_get_flag(c, i, CAP_PERMITTED, &v); in eff_caps_empty()
/external/libcap/libcap/include/sys/
Dcapability.h113 extern int cap_get_flag(cap_t, cap_value_t, cap_flag_t, cap_flag_value_t *);
/external/libcap/pam_cap/
Dtest_pam_cap.c112 if (cap_get_flag(prev, i, CAP_INHERITABLE, &u) != 0) { in load_vectors()
/external/iputils/
Dping_common.c94 cap_get_flag(cap_cur_p, CAP_NET_ADMIN, CAP_PERMITTED, &cap_ok); in limit_capabilities()
100 cap_get_flag(cap_cur_p, CAP_NET_RAW, CAP_PERMITTED, &cap_ok); in limit_capabilities()
151 cap_get_flag(cap_p, cap, CAP_PERMITTED, &cap_ok); in modify_capability()
Darping.c167 cap_get_flag(cap_p, CAP_NET_RAW, CAP_PERMITTED, &cap_raw); in limit_capabilities()
/external/libcap/libcap/
Dcap_flag.c18 int cap_get_flag(cap_t cap_d, cap_value_t value, cap_flag_t set, in cap_get_flag() function
/external/iputils/ninfod/
Dninfod.c524 cap_get_flag(cap_cur_p, CAP_NET_RAW, CAP_PERMITTED, &cap_ok); in limit_capabilities()
530 cap_get_flag(cap_cur_p, CAP_SETUID, CAP_PERMITTED, &cap_ok); in limit_capabilities()
/external/minijail/
Dminijail0_cli.c160 if (cap_get_flag(parsed_caps, i, CAP_EFFECTIVE, in use_caps()
340 if (cap_get_flag(caps, CAP_SETGID, CAP_EFFECTIVE, &cap_value)) { in has_cap_setgid()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c1070 if (cap_get_flag(caps, cap_val, CAP_EFFECTIVE, &sysadmin)) in is_admin()