Home
last modified time | relevance | path

Searched refs:secattr (Results 1 – 6 of 6) sorted by relevance

/security/selinux/
Dnetlabel.c43 struct netlbl_lsm_secattr *secattr, in selinux_netlbl_sidlookup_cached() argument
48 rc = security_netlbl_secattr_to_sid(&selinux_state, secattr, sid); in selinux_netlbl_sidlookup_cached()
50 (secattr->flags & NETLBL_SECATTR_CACHEABLE) && in selinux_netlbl_sidlookup_cached()
51 (secattr->flags & NETLBL_SECATTR_CACHE)) in selinux_netlbl_sidlookup_cached()
52 netlbl_cache_add(skb, family, secattr); in selinux_netlbl_sidlookup_cached()
71 struct netlbl_lsm_secattr *secattr; in selinux_netlbl_sock_genattr() local
76 secattr = netlbl_secattr_alloc(GFP_ATOMIC); in selinux_netlbl_sock_genattr()
77 if (secattr == NULL) in selinux_netlbl_sock_genattr()
80 secattr); in selinux_netlbl_sock_genattr()
82 netlbl_secattr_free(secattr); in selinux_netlbl_sock_genattr()
[all …]
/security/selinux/ss/
Dmls.h67 struct netlbl_lsm_secattr *secattr);
70 struct netlbl_lsm_secattr *secattr);
73 struct netlbl_lsm_secattr *secattr);
76 struct netlbl_lsm_secattr *secattr);
80 struct netlbl_lsm_secattr *secattr) in mls_export_netlbl_lvl() argument
86 struct netlbl_lsm_secattr *secattr) in mls_import_netlbl_lvl() argument
92 struct netlbl_lsm_secattr *secattr) in mls_export_netlbl_cat() argument
98 struct netlbl_lsm_secattr *secattr) in mls_import_netlbl_cat() argument
Dmls.c564 struct netlbl_lsm_secattr *secattr) in mls_export_netlbl_lvl() argument
569 secattr->attr.mls.lvl = context->range.level[0].sens - 1; in mls_export_netlbl_lvl()
570 secattr->flags |= NETLBL_SECATTR_MLS_LVL; in mls_export_netlbl_lvl()
585 struct netlbl_lsm_secattr *secattr) in mls_import_netlbl_lvl() argument
590 context->range.level[0].sens = secattr->attr.mls.lvl + 1; in mls_import_netlbl_lvl()
606 struct netlbl_lsm_secattr *secattr) in mls_export_netlbl_cat() argument
614 &secattr->attr.mls.cat); in mls_export_netlbl_cat()
615 if (rc == 0 && secattr->attr.mls.cat != NULL) in mls_export_netlbl_cat()
616 secattr->flags |= NETLBL_SECATTR_MLS_CAT; in mls_export_netlbl_cat()
635 struct netlbl_lsm_secattr *secattr) in mls_import_netlbl_cat() argument
[all …]
Dservices.c3598 static void security_netlbl_cache_add(struct netlbl_lsm_secattr *secattr, in security_netlbl_cache_add() argument
3606 secattr->cache = netlbl_secattr_cache_alloc(GFP_ATOMIC); in security_netlbl_cache_add()
3607 if (secattr->cache == NULL) { in security_netlbl_cache_add()
3613 secattr->cache->free = kfree; in security_netlbl_cache_add()
3614 secattr->cache->data = sid_cache; in security_netlbl_cache_add()
3615 secattr->flags |= NETLBL_SECATTR_CACHE; in security_netlbl_cache_add()
3634 struct netlbl_lsm_secattr *secattr, in security_netlbl_secattr_to_sid() argument
3650 if (secattr->flags & NETLBL_SECATTR_CACHE) in security_netlbl_secattr_to_sid()
3651 *sid = *(u32 *)secattr->cache->data; in security_netlbl_secattr_to_sid()
3652 else if (secattr->flags & NETLBL_SECATTR_SECID) in security_netlbl_secattr_to_sid()
[all …]
/security/selinux/include/
Dsecurity.h348 struct netlbl_lsm_secattr *secattr,
353 struct netlbl_lsm_secattr *secattr);
356 struct netlbl_lsm_secattr *secattr, in security_netlbl_secattr_to_sid() argument
364 struct netlbl_lsm_secattr *secattr) in security_netlbl_sid_to_secattr() argument
/security/smack/
Dsmack_lsm.c3848 struct netlbl_lsm_secattr secattr; in smack_socket_sock_rcv_skb() local
3881 netlbl_secattr_init(&secattr); in smack_socket_sock_rcv_skb()
3883 rc = netlbl_skbuff_getattr(skb, family, &secattr); in smack_socket_sock_rcv_skb()
3885 skp = smack_from_secattr(&secattr, ssp); in smack_socket_sock_rcv_skb()
3889 netlbl_secattr_destroy(&secattr); in smack_socket_sock_rcv_skb()
4000 struct netlbl_lsm_secattr secattr; in smack_socket_getpeersec_dgram() local
4034 netlbl_secattr_init(&secattr); in smack_socket_getpeersec_dgram()
4035 rc = netlbl_skbuff_getattr(skb, family, &secattr); in smack_socket_getpeersec_dgram()
4037 skp = smack_from_secattr(&secattr, ssp); in smack_socket_getpeersec_dgram()
4040 netlbl_secattr_destroy(&secattr); in smack_socket_getpeersec_dgram()
[all …]