Searched refs:capability_from_name (Results 1 – 8 of 8) sorted by relevance
23 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()
30 int capability_from_name(const char *name) { in capability_from_name() function112 r = capability_from_name(word); in capability_set_from_string()
7 int capability_from_name(const char *name);
35 c = capability_from_name(argv[i]); in verb_capabilities()
303 r = capability_from_name(word); in config_parse_capability()
303 cap = capability_from_name(n); in oci_capability_array()
568 r = capability_from_name(t); in parse_capability_spec()
672 value = capability_from_name(c->parameter); in condition_test_capability()