Home
last modified time | relevance | path

Searched refs:cap_set_flag (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/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/crosvm/devices/src/virtio/fs/
Dcaps.rs25 fn cap_set_flag( in cap_set_flag() function
130 cap_set_flag( in update()
/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.h121 EXPECT_NE(-1, cap_set_flag(cap_p, CAP_PERMITTED, in _init_caps()
156 EXPECT_NE(-1, cap_set_flag(cap_p, CAP_EFFECTIVE, 1, &caps, value)) { in _effective_cap()
/external/libcap/libcap/
Dcap_proc.c449 int ret = cap_set_flag(working, CAP_EFFECTIVE, in _cap_set_mode()
574 (void) cap_set_flag(working, CAP_EFFECTIVE, in _cap_setuid()
629 (void) cap_set_flag(working, CAP_EFFECTIVE, in _cap_setgroups()
726 ret = cap_set_flag(working, CAP_EFFECTIVE, in _cap_iab_set_proc()
849 (void) cap_set_flag(working, CAP_EFFECTIVE, in _cap_chroot()
Dcap_test.c44 if (cap_set_flag(c, CAP_INHERITABLE, 1, &v, CAP_SET)) { in test_cap_flags()
Dcap_flag.c41 int cap_set_flag(cap_t cap_d, cap_flag_t set, in cap_set_flag() function
/external/ltp/testcases/kernel/security/cap_bound/
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/libcap/doc/
DMakefile10 cap_clear.3 cap_clear_flag.3 cap_get_flag.3 cap_set_flag.3 \
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dbind_perm.c59 if (CHECK(cap_set_flag(caps, CAP_EFFECTIVE, 1, &cap_net_bind_service, in cap_net_bind_service()
/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/libcap/progs/
Dcapsh.c199 if (cap_set_flag(*raised_for_setpcap_p, CAP_EFFECTIVE, 1, in push_pcap()
491 && (cap_set_flag(raised_for_setpcap, CAP_EFFECTIVE, 1, in main()
553 && (cap_set_flag(raised_for_setpcap, CAP_EFFECTIVE, 1, in main()
657 if (cap_set_flag(raised_for_chroot, CAP_EFFECTIVE, 1, raise_chroot, in main()
Dsetcap.c200 if (cap_set_flag(mycaps, CAP_EFFECTIVE, 1, &capflag, CAP_SET) in main()
/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/libcap/libcap/include/sys/
Dcapability.h114 extern int cap_set_flag(cap_t, cap_flag_t, int, const cap_value_t *,
/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/
Dlibminijail.c2322 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, flag, CAP_SET)) in drop_caps()
2324 if (cap_set_flag(caps, CAP_PERMITTED, 1, flag, CAP_SET)) in drop_caps()
2326 if (cap_set_flag(caps, CAP_INHERITABLE, 1, flag, CAP_SET)) in drop_caps()
2359 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()
/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()
965 if (cap_set_flag(caps, CAP_EFFECTIVE, 1, &cap_net_admin, in set_admin()

12