Home
last modified time | relevance | path

Searched refs:CAP_SET (Results 1 – 25 of 27) sorted by relevance

12

/external/ltp/testcases/kernel/security/filecaps/
Dverify_caps_exec.c251 cap_set_flag(fcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test()
272 cap_set_flag(fcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test()
273 cap_set_flag(fcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test()
294 cap_set_flag(cap_fullpi, CAP_INHERITABLE, 1, capvalue, CAP_SET); in caps_actually_set_test()
326 cap_set_flag(pcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test()
330 cap_set_flag(fcap, CAP_INHERITABLE, 1, capvalue, CAP_SET); in caps_actually_set_test()
353 cap_set_flag(fcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test()
354 cap_set_flag(pcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test()
363 cap_set_flag(cmpcap, CAP_PERMITTED, 1, capvalue, CAP_SET); in caps_actually_set_test()
364 cap_set_flag(cmpcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); in caps_actually_set_test()
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl07.c103 cap_set_flag(caps, CAP_EFFECTIVE, numcaps, caplist, CAP_SET); in verify_prctl()
104 cap_set_flag(caps, CAP_INHERITABLE, numcaps, caplist, CAP_SET); in verify_prctl()
105 cap_set_flag(caps, CAP_PERMITTED, numcaps, caplist, CAP_SET); in verify_prctl()
115 cap_set_flag(caps, CAP_INHERITABLE, numcaps, caplist, CAP_SET); in verify_prctl()
120 cap_set_flag(caps, CAP_PERMITTED, numcaps, caplist, CAP_SET); in verify_prctl()
/external/libcap/libcap/
Dcap_proc.c317 case CAP_SET: in _cap_set_ambient()
450 1, raise_cap_setpcap, CAP_SET); in _cap_set_mode()
575 1, raise_cap_setuid, CAP_SET); in _cap_setuid()
630 1, raise_cap_setgid, CAP_SET); in _cap_setgroups()
727 1, raise_cap_setpcap, CAP_SET); in _cap_iab_set_proc()
743 ret = _cap_set_ambient(sc, c, CAP_SET); in _cap_iab_set_proc()
850 1, raise_cap_sys_chroot, CAP_SET); in _cap_chroot()
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()
60 if (raise == CAP_SET) { in cap_set_flag()
Dcap_test.c44 if (cap_set_flag(c, CAP_INHERITABLE, 1, &v, CAP_SET)) { in test_cap_flags()
/external/ltp/testcases/kernel/security/cap_bound/
Dcap_bset_inh_bounds.c76 if (ret || f != CAP_SET) { in main()
93 if (ret || f != CAP_SET) { in main()
Dcheck_pe.c68 if (f == CAP_SET) { in main()
Dexec_without_inh.c54 if (f == CAP_SET) { in main()
Dexec_with_inh.c68 if (ret || f != CAP_SET) { in main()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dbind_perm.c57 was_effective = (original_value == CAP_SET); in cap_net_bind_service()
103 cap_net_bind_service(CAP_SET); in test_bind_perm()
/external/linux-kselftest/tools/testing/selftests/clone3/
Dclone3_cap_checkpoint_restore.c118 cap_set_flag(caps, CAP_EFFECTIVE, 2, cap_values, CAP_SET); in set_capability()
119 cap_set_flag(caps, CAP_PERMITTED, 2, cap_values, CAP_SET); in set_capability()
/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/linux-kselftest/tools/testing/selftests/landlock/
Dcommon.h122 ARRAY_SIZE(caps), caps, CAP_SET)) { in _init_caps()
171 _effective_cap(_metadata, caps, CAP_SET); in set_cap()
/external/iputils/
Dping_common.h265 static inline int enable_capability_raw(void) { return modify_capability(CAP_NET_RAW, CAP_SET); … in enable_capability_raw()
267 static inline int enable_capability_admin(void) { return modify_capability(CAP_NET_ADMIN, CAP_SET)… in enable_capability_admin()
Darping.c175 cap_set_flag(cap_p, CAP_PERMITTED, 1, caps, CAP_SET); in limit_capabilities()
210 if (cap_raw != CAP_SET) in modify_capability_raw()
219 cap_set_flag(cap_p, CAP_EFFECTIVE, 1, caps, on ? CAP_SET : CAP_CLEAR); in modify_capability_raw()
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()
/external/libcap/go/
Dcompare-cap.go347 if C.cap_iab_set_vector(cIAB, C.CAP_IAB_INH, C.cap_value_t(int(c)), C.CAP_SET) != 0 {
354 if C.cap_iab_set_vector(cIAB, C.CAP_IAB_AMB, C.cap_value_t(int(c)), C.CAP_SET) != 0 {
361 if C.cap_iab_set_vector(cIAB, C.CAP_IAB_BOUND, C.cap_value_t(int(c)), C.CAP_SET) != 0 {
/external/libcap/progs/
Dcapsh.c200 raise_setpcap, CAP_SET) != 0) { in push_pcap()
466 arg_change_amb(argv[i]+9, CAP_SET); in main()
492 raise_setpcap, CAP_SET) != 0)) { in main()
554 raise_setpcap, CAP_SET) != 0)) { in main()
658 CAP_SET) != 0) { in main()
Dsetcap.c200 if (cap_set_flag(mycaps, CAP_EFFECTIVE, 1, &capflag, CAP_SET) in main()
/external/libcap/libcap/include/sys/
Dcapability.h94 CAP_SET=1 /* The flag is set/enabled */ enumerator
/external/libwebsockets/lib/plat/unix/
Dunix-caps.c44 cap_set_flag(caps, (cap_flag_t)mode, count, cv, CAP_SET); in _lws_plat_apply_caps()
/external/linux-kselftest/tools/testing/selftests/safesetid/
Dsafesetid-test.c277 cap_set_flag(caps, CAP_EFFECTIVE, 2, cap_values, CAP_SET); in drop_caps()
/external/libcap/contrib/sucap/
Dsu.c283 cap_set_flag(working, CAP_EFFECTIVE, 1, &cchown, CAP_SET); in change_terminal_owner()
319 cap_set_flag(working, CAP_EFFECTIVE, 1, &cchown, CAP_SET); in restore_terminal_owner()
1255 cap_set_flag(current, CAP_EFFECTIVE, 1, &csetgid, CAP_SET); in set_credentials()
/external/minijail/
Dminijail0_cli.c170 if (cap_value == CAP_SET) in use_caps()
313 return cap_value == CAP_SET; in has_cap_setgid()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_verifier.c966 admin ? CAP_SET : CAP_CLEAR)) { in set_admin()
1286 return bpf_priv && perfmon_priv && net_priv == CAP_SET; in is_admin()

12