Home
last modified time | relevance | path

Searched refs:capability_from_name (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/test/
Dtest-cap-list.c23 assert_se(capability_from_name(n) == i); in TEST()
27 assert_se(capability_from_name("asdfbsd") == -EINVAL); in TEST()
28 assert_se(capability_from_name("CAP_AUDIT_READ") == CAP_AUDIT_READ); in TEST()
29 assert_se(capability_from_name("cap_audit_read") == CAP_AUDIT_READ); in TEST()
30 assert_se(capability_from_name("cAp_aUdIt_rEAd") == CAP_AUDIT_READ); in TEST()
31 assert_se(capability_from_name("0") == 0); in TEST()
32 assert_se(capability_from_name("15") == 15); in TEST()
33 assert_se(capability_from_name("63") == 63); in TEST()
34 assert_se(capability_from_name("64") == -EINVAL); in TEST()
35 assert_se(capability_from_name("-1") == -EINVAL); in TEST()
/systemd-251/src/basic/
Dcap-list.c30 int capability_from_name(const char *name) { in capability_from_name() function
112 r = capability_from_name(word); in capability_set_from_string()
Dcap-list.h7 int capability_from_name(const char *name);
/systemd-251/src/analyze/
Danalyze-capability.c35 c = capability_from_name(argv[i]); in verb_capabilities()
/systemd-251/src/nspawn/
Dnspawn-settings.c303 r = capability_from_name(word); in config_parse_capability()
Dnspawn-oci.c303 cap = capability_from_name(n); in oci_capability_array()
Dnspawn.c568 r = capability_from_name(t); in parse_capability_spec()
/systemd-251/src/shared/
Dcondition.c672 value = capability_from_name(c->parameter); in condition_test_capability()