Searched refs:capnum (Results 1 – 3 of 3) sorted by relevance
16 int capnum; in sepol_polcap_getnum() local18 for (capnum = 0; capnum <= POLICYDB_CAPABILITY_MAX; capnum++) { in sepol_polcap_getnum()19 if (polcap_names[capnum] == NULL) in sepol_polcap_getnum()21 if (strcasecmp(polcap_names[capnum], name) == 0) in sepol_polcap_getnum()22 return capnum; in sepol_polcap_getnum()27 const char *sepol_polcap_getname(int capnum) in sepol_polcap_getname() argument29 if (capnum > POLICYDB_CAPABILITY_MAX) in sepol_polcap_getname()32 return polcap_names[capnum]; in sepol_polcap_getname()
16 extern const char *sepol_polcap_getname(int capnum);
244 int capnum; in define_polcap() local259 capnum = sepol_polcap_getnum(id); in define_polcap()260 if (capnum < 0) { in define_polcap()266 if (ebitmap_set_bit(&policydbp->policycaps, capnum, TRUE)) { in define_polcap()