Searched refs:have_effective_cap (Results 1 – 12 of 12) sorted by relevance
164 …if (have_effective_cap(CAP_NET_RAW) == 0) /* The remaining two tests only work if we have CAP_NET_… in test_drop_privileges()174 assert_se(have_effective_cap(CAP_KILL)); in test_have_effective_cap()175 assert_se(have_effective_cap(CAP_CHOWN)); in test_have_effective_cap()181 assert_se(have_effective_cap(CAP_KILL)); in test_have_effective_cap()182 assert_se(!have_effective_cap(CAP_CHOWN)); in test_have_effective_cap()
988 if (have_effective_cap(CAP_CHOWN) <= 0 || in test_exec_capabilityboundingset()989 have_effective_cap(CAP_FOWNER) <= 0 || in test_exec_capabilityboundingset()990 have_effective_cap(CAP_KILL) <= 0) { in test_exec_capabilityboundingset()1018 if (have_effective_cap(CAP_CHOWN) <= 0 || in test_exec_ambientcapabilities()1019 have_effective_cap(CAP_NET_RAW) <= 0) { in test_exec_ambientcapabilities()1224 if (geteuid() != 0 || have_effective_cap(CAP_SYS_ADMIN) <= 0) in main()
132 if (geteuid() != 0 || have_effective_cap(CAP_SYS_ADMIN) <= 0) { in TEST()185 if (geteuid() != 0 || have_effective_cap(CAP_SYS_ADMIN) <= 0) { in TEST()
16 if (have_effective_cap(CAP_DAC_OVERRIDE) <= 0) in main()
46 …return geteuid() == 0 && have_effective_cap(CAP_SYS_ADMIN) > 0; /* If we are root but CAP_SYS_ADMI… in have_seccomp_privs()
23 if (have_effective_cap(CAP_AUDIT_WRITE) == 0) { in get_audit_fd()
124 if (have_effective_cap(CAP_SYS_MODULE) == 0) in kmod_setup()
1443 if (have_effective_cap(CAP_SYS_ADMIN)) /* if we are privileged, we don't need NNP */ in context_has_no_new_privileges()2127 if (have_effective_cap(CAP_SETUID) && uid != ouid && uid_is_valid(uid)) in setup_private_users()2141 if (have_effective_cap(CAP_SETGID) && gid != ogid && gid_is_valid(gid)) in setup_private_users()4660 if (needs_sandboxing && context->private_users && !have_effective_cap(CAP_SYS_ADMIN)) { in exec_child()
16 int have_effective_cap(int value);
20 int have_effective_cap(int value) { in have_effective_cap() function
154 if (!have_effective_cap(CAP_SYS_ADMIN)) in verb_unmerge()772 if (!have_effective_cap(CAP_SYS_ADMIN)) in verb_merge()807 if (!have_effective_cap(CAP_SYS_ADMIN)) in verb_refresh()
2302 if (have_effective_cap(CAP_MKNOD) == 0) { in create_item()