Home
last modified time | relevance | path

Searched refs:capnum (Results 1 – 4 of 4) sorted by relevance

/external/selinux/libsepol/src/
Dpolcaps.c20 int capnum; in sepol_polcap_getnum() local
22 for (capnum = 0; capnum <= POLICYDB_CAPABILITY_MAX; capnum++) { in sepol_polcap_getnum()
23 if (polcap_names[capnum] == NULL) in sepol_polcap_getnum()
25 if (strcasecmp(polcap_names[capnum], name) == 0) in sepol_polcap_getnum()
26 return capnum; in sepol_polcap_getnum()
31 const char *sepol_polcap_getname(unsigned int capnum) in sepol_polcap_getname() argument
33 if (capnum > POLICYDB_CAPABILITY_MAX) in sepol_polcap_getname()
36 return polcap_names[capnum]; in sepol_polcap_getname()
/external/selinux/libsepol/include/sepol/policydb/
Dpolcaps.h24 extern const char *sepol_polcap_getname(unsigned int capnum);
/external/selinux/checkpolicy/
Dpolicy_define.c256 int capnum; in define_polcap() local
271 capnum = sepol_polcap_getnum(id); in define_polcap()
272 if (capnum < 0) { in define_polcap()
278 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap()
/external/selinux/libsepol/cil/src/
Dcil_binary.c673 int capnum; in cil_policycap_to_policydb() local
675 capnum = sepol_polcap_getnum(cil_polcap->datum.fqn); in cil_policycap_to_policydb()
676 if (capnum == -1) { in cil_policycap_to_policydb()
680 if (ebitmap_set_bit(&pdb->policycaps, capnum, 1)) { in cil_policycap_to_policydb()