Searched refs:smk_netlabel (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/security/smack/ |
D | smack_access.c | 524 skp->smk_netlabel.attr.secid = skp->smk_secid; in smack_populate_secattr() 525 skp->smk_netlabel.domain = skp->smk_known; in smack_populate_secattr() 526 skp->smk_netlabel.cache = netlbl_secattr_cache_alloc(GFP_ATOMIC); in smack_populate_secattr() 527 if (skp->smk_netlabel.cache != NULL) { in smack_populate_secattr() 528 skp->smk_netlabel.flags |= NETLBL_SECATTR_CACHE; in smack_populate_secattr() 529 skp->smk_netlabel.cache->free = NULL; in smack_populate_secattr() 530 skp->smk_netlabel.cache->data = skp; in smack_populate_secattr() 532 skp->smk_netlabel.flags |= NETLBL_SECATTR_SECID | in smack_populate_secattr() 542 &skp->smk_netlabel, slen); in smack_populate_secattr() 545 &skp->smk_netlabel, sizeof(skp->smk_secid)); in smack_populate_secattr()
|
D | smackfs.c | 771 struct netlbl_lsm_catmap *cmp = skp->smk_netlabel.attr.mls.cat; in cipso_seq_show() 786 seq_printf(s, "%s %3d", skp->smk_known, skp->smk_netlabel.attr.mls.lvl); in cipso_seq_show() 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() 925 skp->smk_netlabel.attr.mls.lvl = ncats.attr.mls.lvl; in smk_set_cipso() 978 struct netlbl_lsm_catmap *cmp = skp->smk_netlabel.attr.mls.cat; in cipso2_seq_show() 982 seq_printf(s, "%s %3d", skp->smk_known, skp->smk_netlabel.attr.mls.lvl); in cipso2_seq_show() 1689 if (skp->smk_netlabel.attr.mls.lvl == in smk_write_direct() 1691 skp->smk_netlabel.attr.mls.lvl = i; in smk_write_direct() 1767 if (skp->smk_netlabel.attr.mls.lvl == in smk_write_mapped() [all …]
|
D | smack.h | 71 struct netlbl_lsm_secattr smk_netlabel; /* on wire labels */ member
|
D | smack_lsm.c | 2413 rc = netlbl_sock_setattr(sk, sk->sk_family, &skp->smk_netlabel); in smack_netlbl_add() 3757 if (sap->attr.mls.lvl != skp->smk_netlabel.attr.mls.lvl) in smack_from_secattr() 3763 if ((skp->smk_netlabel.flags & in smack_from_secattr() 3772 skp->smk_netlabel.attr.mls.cat, in smack_from_secattr() 3896 netlbl_cache_add(skb, family, &skp->smk_netlabel); in smack_from_netlbl() 4204 rc = netlbl_req_setattr(req, &skp->smk_netlabel); in smack_inet_conn_request()
|