Searched refs:capnum (Results 1 – 4 of 4) sorted by relevance
22 int capnum; in sepol_polcap_getnum() local24 for (capnum = 0; capnum <= POLICYDB_CAP_MAX; capnum++) { in sepol_polcap_getnum()25 if (polcap_names[capnum] == NULL) in sepol_polcap_getnum()27 if (strcasecmp(polcap_names[capnum], name) == 0) in sepol_polcap_getnum()28 return capnum; in sepol_polcap_getnum()33 const char *sepol_polcap_getname(unsigned int capnum) in sepol_polcap_getname() argument35 if (capnum > POLICYDB_CAP_MAX) in sepol_polcap_getname()38 return polcap_names[capnum]; in sepol_polcap_getname()
26 extern const char *sepol_polcap_getname(unsigned int capnum);
251 int capnum; in define_polcap() local266 capnum = sepol_polcap_getnum(id); in define_polcap()267 if (capnum < 0) { in define_polcap()273 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap()
660 int capnum; in cil_policycap_to_policydb() local662 capnum = sepol_polcap_getnum(cil_polcap->datum.fqn); in cil_policycap_to_policydb()663 if (capnum == -1) { in cil_policycap_to_policydb()667 if (ebitmap_set_bit(&pdb->policycaps, capnum, 1)) { in cil_policycap_to_policydb()