/linux/net/netfilter/ |
A D | xt_CONNSECMARK.c | 34 if (skb->secmark) { in secmark_save() 39 if (ct && !ct->secmark) { in secmark_save() 40 ct->secmark = skb->secmark; in secmark_save() 52 if (!skb->secmark) { in secmark_restore() 57 if (ct && ct->secmark) in secmark_restore() 58 skb->secmark = ct->secmark; in secmark_restore()
|
A D | xt_SECMARK.c | 29 u32 secmark = 0; in secmark_tg() local 33 secmark = info->secid; in secmark_tg() 39 skb->secmark = secmark; in secmark_tg()
|
A D | nft_meta.c | 370 *dest = skb->secmark; in nft_meta_get_eval() 458 skb->secmark = value; in nft_meta_set_eval() 840 skb->secmark = priv->secid; in nft_secmark_obj_eval()
|
A D | nft_ct.c | 105 *dest = ct->secmark; in nft_ct_get_eval() 305 if (ct->secmark != value) { in nft_ct_set_eval() 306 ct->secmark = value; in nft_ct_set_eval()
|
A D | nfnetlink_queue.c | 313 if (skb->secmark) in nfqnl_get_sk_secctx() 314 security_secid_to_secctx(skb->secmark, secdata, &seclen); in nfqnl_get_sk_secctx()
|
A D | nf_conntrack_netlink.c | 345 ret = security_secid_to_secctx(ct->secmark, &secctx, &len); in ctnetlink_dump_secctx() 654 ret = security_secid_to_secctx(ct->secmark, NULL, &len); in ctnetlink_secctx_size() 801 if ((events & (1 << IPCT_SECMARK) || ct->secmark) in ctnetlink_conntrack_event() 2740 if (ct->secmark && ctnetlink_dump_secctx(skb, ct) < 0) in __ctnetlink_glue_build()
|
A D | nf_conntrack_standalone.c | 182 ret = security_secid_to_secctx(ct->secmark, &secctx, &len); in ct_show_secctx()
|
A D | nf_conntrack_core.c | 1682 ct->secmark = exp->master->secmark; in init_conntrack()
|
/linux/security/apparmor/ |
A D | net.c | 192 static int apparmor_secmark_init(struct aa_secmark *secmark) in apparmor_secmark_init() argument 196 if (secmark->label[0] == '*') { in apparmor_secmark_init() 197 secmark->secid = AA_SECID_WILDCARD; in apparmor_secmark_init() 202 secmark->label, strlen(secmark->label), in apparmor_secmark_init() 208 secmark->secid = label->secid; in apparmor_secmark_init() 223 if (!profile->secmark[i].secid) { in aa_secmark_perm() 224 ret = apparmor_secmark_init(&profile->secmark[i]); in aa_secmark_perm() 229 if (profile->secmark[i].secid == secid || in aa_secmark_perm() 230 profile->secmark[i].secid == AA_SECID_WILDCARD) { in aa_secmark_perm() 231 if (profile->secmark[i].deny) in aa_secmark_perm() [all …]
|
A D | policy_unpack.c | 583 profile->secmark = kcalloc(size, sizeof(struct aa_secmark), in unpack_secmark() 585 if (!profile->secmark) in unpack_secmark() 591 if (!unpack_u8(e, &profile->secmark[i].audit, NULL)) in unpack_secmark() 593 if (!unpack_u8(e, &profile->secmark[i].deny, NULL)) in unpack_secmark() 595 if (!unpack_strdup(e, &profile->secmark[i].label, NULL)) in unpack_secmark() 607 if (profile->secmark) { in unpack_secmark() 609 kfree(profile->secmark[i].label); in unpack_secmark() 610 kfree(profile->secmark); in unpack_secmark() 612 profile->secmark = NULL; in unpack_secmark()
|
A D | lsm.c | 1057 if (!skb->secmark) in apparmor_socket_sock_rcv_skb() 1061 skb->secmark, sk); in apparmor_socket_sock_rcv_skb() 1164 if (!skb->secmark) in apparmor_inet_conn_request() 1168 skb->secmark, sk); in apparmor_inet_conn_request() 1760 if (!skb->secmark) in apparmor_ip_postroute() 1769 skb->secmark, sk)) in apparmor_ip_postroute()
|
A D | policy.c | 230 kfree_sensitive(profile->secmark[i].label); in aa_free_profile() 231 kfree_sensitive(profile->secmark); in aa_free_profile()
|
/linux/security/smack/ |
A D | smack_netfilter.c | 32 skb->secmark = skp->smk_secid; in smack_ip_output()
|
A D | smack_lsm.c | 3852 if (skb == NULL || skb->secmark == 0) in smack_from_skb() 3855 return smack_from_secid(skb->secmark); in smack_from_skb()
|
/linux/security/apparmor/include/ |
A D | policy.h | 155 struct aa_secmark *secmark; member
|
/linux/include/net/netfilter/ |
A D | nf_conntrack.h | 114 u_int32_t secmark; member
|
/linux/include/linux/ |
A D | skbuff.h | 910 __u32 secmark; member 4432 to->secmark = from->secmark; in skb_copy_secmark() 4437 skb->secmark = 0; in skb_init_secmark()
|
/linux/security/selinux/ |
A D | hooks.c | 5133 sk_sid, skb->secmark, SECCLASS_PACKET, in selinux_sock_rcv_skb_compat() 5209 sk_sid, skb->secmark, SECCLASS_PACKET, in selinux_socket_sock_rcv_skb() 5723 peer_sid, skb->secmark, in selinux_ip_forward() 5804 sksec->sid, skb->secmark, in selinux_ip_postroute_compat() 5930 peer_sid, skb->secmark, in selinux_ip_postroute()
|
/linux/net/core/ |
A D | skbuff.c | 1036 CHECK_SKB_FIELD(secmark); in __copy_skb_header()
|