Home
last modified time | relevance | path

Searched refs:cat (Results 1 – 8 of 8) sorted by relevance

/security/selinux/ss/
Dcontext.h45 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy()
50 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy()
52 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy()
65 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy_low()
70 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[0].cat); in mls_context_cpy_low()
72 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy_low()
85 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[1].cat); in mls_context_cpy_high()
90 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy_high()
92 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy_high()
100 ebitmap_cmp(&c1->range.level[0].cat, &c2->range.level[0].cat) && in mls_context_cmp()
[all …]
Dmls.c53 e = &context->range.level[l].cat; in mls_compute_context_len()
112 e = &context->range.level[l].cat; in mls_sid_to_context()
173 ebitmap_for_each_positive_bit(&l->cat, node, i) { in mls_level_isvalid()
176 if (!ebitmap_get_bit(&levdatum->level->cat, i)) { in mls_level_isvalid()
322 rc = ebitmap_set_bit(&context->range.level[l].cat, in mls_context_to_sid()
343 rc = ebitmap_set_bit(&context->range.level[l].cat, i, 1); in mls_context_to_sid()
368 rc = ebitmap_cpy(&context->range.level[1].cat, in mls_context_to_sid()
369 &context->range.level[0].cat); in mls_context_to_sid()
418 rc = ebitmap_cpy(&context->range.level[l].cat, in mls_range_set()
419 &range->level[l].cat); in mls_range_set()
[all …]
Dmls_types.h22 struct ebitmap cat; /* category set */ member
32 ebitmap_cmp(&l1->cat, &l2->cat)); in mls_level_eq()
38 ebitmap_contains(&l1->cat, &l2->cat)); in mls_level_dom()
Dpolicydb.c710 ebitmap_destroy(&usrdatum->range.level[0].cat); in user_destroy()
711 ebitmap_destroy(&usrdatum->range.level[1].cat); in user_destroy()
712 ebitmap_destroy(&usrdatum->dfltlevel.cat); in user_destroy()
725 ebitmap_destroy(&levdatum->level->cat); in sens_destroy()
765 ebitmap_destroy(&rt->level[0].cat); in range_tr_destroy()
766 ebitmap_destroy(&rt->level[1].cat); in range_tr_destroy()
1018 rc = ebitmap_read(&r->level[0].cat, fp); in mls_read_range_helper()
1024 rc = ebitmap_read(&r->level[1].cat, fp); in mls_read_range_helper()
1030 rc = ebitmap_cpy(&r->level[1].cat, &r->level[0].cat); in mls_read_range_helper()
1039 ebitmap_destroy(&r->level[0].cat); in mls_read_range_helper()
[all …]
Dservices.c3323 rc = ebitmap_netlbl_import(&ctx_new.range.level[0].cat, in security_netlbl_secattr_to_sid()
3324 secattr->attr.mls.cat); in security_netlbl_secattr_to_sid()
3327 memcpy(&ctx_new.range.level[1].cat, in security_netlbl_secattr_to_sid()
3328 &ctx_new.range.level[0].cat, in security_netlbl_secattr_to_sid()
3329 sizeof(ctx_new.range.level[0].cat)); in security_netlbl_secattr_to_sid()
3341 ebitmap_destroy(&ctx_new.range.level[0].cat); in security_netlbl_secattr_to_sid()
3348 ebitmap_destroy(&ctx_new.range.level[0].cat); in security_netlbl_secattr_to_sid()
/security/smack/
Dsmack.h251 static inline void smack_catset_bit(int cat, char *catsetp) in smack_catset_bit() argument
253 if (cat > SMK_LABELLEN * 8) in smack_catset_bit()
256 catsetp[(cat - 1) / 8] |= 0x80 >> ((cat - 1) % 8); in smack_catset_bit()
Dsmackfs.c611 int cat = 1; in cipso_seq_show() local
624 seq_printf(s, "%c%d", sep, cat); in cipso_seq_show()
627 cat++; in cipso_seq_show()
672 int cat; in smk_write_cipso() local
735 ret = sscanf(rule, "%d", &cat); in smk_write_cipso()
736 if (ret != 1 || cat > SMACK_CIPSO_MAXCATVAL) in smk_write_cipso()
739 smack_catset_bit(cat, mapcatset); in smk_write_cipso()
Dsmack_lsm.c1833 int cat; in smack_set_catset() local
1841 sap->attr.mls.cat = netlbl_secattr_catmap_alloc(GFP_ATOMIC); in smack_set_catset()
1842 sap->attr.mls.cat->startbit = 0; in smack_set_catset()
1844 for (cat = 1, cp = catset, byte = 0; byte < SMK_LABELLEN; cp++, byte++) in smack_set_catset()
1845 for (m = 0x80; m != 0; m >>= 1, cat++) { in smack_set_catset()
1848 rc = netlbl_secattr_catmap_setbit(sap->attr.mls.cat, in smack_set_catset()
1849 cat, GFP_ATOMIC); in smack_set_catset()
2918 sap->attr.mls.cat, pcat + 1); in smack_from_secattr()