Searched refs:capability_from_name (Results 1 - 7 of 7) sorted by relevance

/systemd/src/basic/
H A Dcap-list.h23 int capability_from_name(const char *name);
H A Dcap-list.c45 int capability_from_name(const char *name) { function
/systemd/src/test/
H A Dtest-cap-list.c40 assert_se(capability_from_name(n) == i);
44 assert_se(capability_from_name("asdfbsd") == -EINVAL);
45 assert_se(capability_from_name("CAP_AUDIT_READ") == CAP_AUDIT_READ);
46 assert_se(capability_from_name("cap_audit_read") == CAP_AUDIT_READ);
47 assert_se(capability_from_name("cAp_aUdIt_rEAd") == CAP_AUDIT_READ);
48 assert_se(capability_from_name("0") == 0);
49 assert_se(capability_from_name("15") == 15);
50 assert_se(capability_from_name("-1") == -EINVAL);
/systemd/src/nspawn/
H A Dnspawn-settings.c177 cap = capability_from_name(word);
H A Dnspawn.c582 cap = capability_from_name(t);
/systemd/src/shared/
H A Dcondition.c262 value = capability_from_name(c->parameter);
/systemd/src/core/
H A Dload-fragment.c1082 cap = capability_from_name(word);

Completed in 1756 milliseconds