Home
last modified time | relevance | path

Searched refs:have_effective_cap (Results 1 – 12 of 12) sorted by relevance

/systemd-251/src/test/
Dtest-capability.c164 …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()
Dtest-execute.c988 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()
Dtest-mount-util.c132 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()
Dtest-dev-setup.c16 if (have_effective_cap(CAP_DAC_OVERRIDE) <= 0) in main()
Dtest-seccomp.c46 …return geteuid() == 0 && have_effective_cap(CAP_SYS_ADMIN) > 0; /* If we are root but CAP_SYS_ADMI… in have_seccomp_privs()
/systemd-251/src/core/
Daudit-fd.c23 if (have_effective_cap(CAP_AUDIT_WRITE) == 0) { in get_audit_fd()
Dkmod-setup.c124 if (have_effective_cap(CAP_SYS_MODULE) == 0) in kmod_setup()
Dexecute.c1443 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()
/systemd-251/src/basic/
Dcapability-util.h16 int have_effective_cap(int value);
Dcapability-util.c20 int have_effective_cap(int value) { in have_effective_cap() function
/systemd-251/src/sysext/
Dsysext.c154 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()
/systemd-251/src/tmpfiles/
Dtmpfiles.c2302 if (have_effective_cap(CAP_MKNOD) == 0) { in create_item()