Searched refs:cat (Results 1 – 9 of 9) sorted by relevance
/security/selinux/ss/ |
D | context.h | 46 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy() 51 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy() 53 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy() 66 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy_low() 71 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[0].cat); in mls_context_cpy_low() 73 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy_low() 86 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[1].cat); in mls_context_cpy_high() 91 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy_high() 93 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy_high() 117 rc = ebitmap_and(&dr->level[0].cat, in mls_context_glblub() [all …]
|
D | mls.c | 54 e = &context->range.level[l].cat; in mls_compute_context_len() 114 e = &context->range.level[l].cat; in mls_sid_to_context() 177 return ebitmap_contains(&levdatum->level->cat, &l->cat, in mls_level_isvalid() 318 rc = ebitmap_set_bit(&context->range.level[l].cat, in mls_context_to_sid() 335 rc = ebitmap_set_bit(&context->range.level[l].cat, i, 1); in mls_context_to_sid() 345 rc = ebitmap_cpy(&context->range.level[1].cat, in mls_context_to_sid() 346 &context->range.level[0].cat); in mls_context_to_sid() 392 rc = ebitmap_cpy(&context->range.level[l].cat, in mls_range_set() 393 &range->level[l].cat); in mls_range_set() 469 ebitmap_for_each_positive_bit(&oldc->range.level[l].cat, in mls_convert_context() [all …]
|
D | mls_types.h | 23 struct ebitmap cat; /* category set */ member 33 ebitmap_cmp(&l1->cat, &l2->cat)); in mls_level_eq() 39 ebitmap_contains(&l1->cat, &l2->cat, 0)); in mls_level_dom()
|
D | mls.h | 110 hash = ebitmap_hash(&r->level[0].cat, hash); in mls_range_hash() 111 hash = ebitmap_hash(&r->level[1].cat, hash); in mls_range_hash()
|
D | policydb.c | 285 ebitmap_destroy(&usrdatum->range.level[0].cat); in user_destroy() 286 ebitmap_destroy(&usrdatum->range.level[1].cat); in user_destroy() 287 ebitmap_destroy(&usrdatum->dfltlevel.cat); in user_destroy() 301 ebitmap_destroy(&levdatum->level->cat); in sens_destroy() 348 ebitmap_destroy(&rt->level[0].cat); in range_tr_destroy() 349 ebitmap_destroy(&rt->level[1].cat); in range_tr_destroy() 999 rc = ebitmap_read(&r->level[0].cat, fp); in mls_read_range_helper() 1005 rc = ebitmap_read(&r->level[1].cat, fp); in mls_read_range_helper() 1011 rc = ebitmap_cpy(&r->level[1].cat, &r->level[0].cat); in mls_read_range_helper() 1020 ebitmap_destroy(&r->level[0].cat); in mls_read_range_helper() [all …]
|
D | services.c | 3926 ebitmap_destroy(&ctx_new.range.level[0].cat); in security_netlbl_secattr_to_sid() 3931 ebitmap_destroy(&ctx_new.range.level[0].cat); in security_netlbl_secattr_to_sid()
|
/security/smack/ |
D | smack_access.c | 489 int cat; in smk_netlbl_mls() local 495 sap->attr.mls.cat = NULL; in smk_netlbl_mls() 497 for (cat = 1, cp = catset, byte = 0; byte < len; cp++, byte++) in smk_netlbl_mls() 498 for (m = 0x80; m != 0; m >>= 1, cat++) { in smk_netlbl_mls() 501 rc = netlbl_catmap_setbit(&sap->attr.mls.cat, in smk_netlbl_mls() 502 cat, GFP_NOFS); in smk_netlbl_mls() 504 netlbl_catmap_free(sap->attr.mls.cat); in smk_netlbl_mls()
|
D | smackfs.c | 171 static inline void smack_catset_bit(unsigned int cat, char *catsetp) in smack_catset_bit() argument 173 if (cat == 0 || cat > (SMK_CIPSOLEN * 8)) in smack_catset_bit() 176 catsetp[(cat - 1) / 8] |= 0x80 >> ((cat - 1) % 8); in smack_catset_bit() 771 struct netlbl_lsm_catmap *cmp = skp->smk_netlabel.attr.mls.cat; in cipso_seq_show() 838 unsigned int cat; in smk_set_cipso() local 914 ret = sscanf(rule, "%u", &cat); in smk_set_cipso() 915 if (ret != 1 || cat > SMACK_CIPSO_MAXCATNUM) in smk_set_cipso() 918 smack_catset_bit(cat, mapcatset); in smk_set_cipso() 923 old_cat = skp->smk_netlabel.attr.mls.cat; in smk_set_cipso() 924 skp->smk_netlabel.attr.mls.cat = ncats.attr.mls.cat; in smk_set_cipso() [all …]
|
D | smack_lsm.c | 3848 acat = netlbl_catmap_walk(sap->attr.mls.cat, in smack_from_secattr() 3851 skp->smk_netlabel.attr.mls.cat, in smack_from_secattr()
|