/kernel/linux/linux-5.10/net/netfilter/ |
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()
|
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()
|
D | nft_meta.c | 366 *dest = skb->secmark; in nft_meta_get_eval() 454 skb->secmark = value; in nft_meta_set_eval() 838 skb->secmark = priv->secid; in nft_secmark_obj_eval()
|
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()
|
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()
|
D | nf_conntrack_netlink.c | 340 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() 802 if ((events & (1 << IPCT_SECMARK) || ct->secmark) in ctnetlink_conntrack_event() 2734 if (ct->secmark && ctnetlink_dump_secctx(skb, ct) < 0) in __ctnetlink_glue_build()
|
D | nf_conntrack_standalone.c | 179 ret = security_secid_to_secctx(ct->secmark, &secctx, &len); in ct_show_secctx()
|
D | nf_conntrack_core.c | 1604 ct->secmark = exp->master->secmark; in init_conntrack()
|
/kernel/linux/linux-5.10/security/apparmor/ |
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 …]
|
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()
|
D | lsm.c | 1048 if (!skb->secmark) in apparmor_socket_sock_rcv_skb() 1052 skb->secmark, sk); in apparmor_socket_sock_rcv_skb() 1155 if (!skb->secmark) in apparmor_inet_conn_request() 1159 skb->secmark, sk); in apparmor_inet_conn_request() 1750 if (!skb->secmark) in apparmor_ip_postroute() 1759 skb->secmark, sk)) in apparmor_ip_postroute()
|
D | policy.c | 230 kfree_sensitive(profile->secmark[i].label); in aa_free_profile() 231 kfree_sensitive(profile->secmark); in aa_free_profile()
|
/kernel/linux/linux-5.10/security/smack/ |
D | smack_netfilter.c | 34 skb->secmark = skp->smk_secid; in smack_ipv6_output() 52 skb->secmark = skp->smk_secid; in smack_ipv4_output()
|
D | smack_lsm.c | 3844 if (skb == NULL || skb->secmark == 0) in smack_from_skb() 3847 return smack_from_secid(skb->secmark); in smack_from_skb()
|
/kernel/linux/linux-5.10/security/apparmor/include/ |
D | policy.h | 155 struct aa_secmark *secmark; member
|
/kernel/linux/linux-5.10/include/net/netfilter/ |
D | nf_conntrack.h | 100 u_int32_t secmark; member
|
/kernel/linux/linux-5.10/include/linux/ |
D | skbuff.h | 888 __u32 secmark; member 4308 to->secmark = from->secmark; in skb_copy_secmark() 4313 skb->secmark = 0; in skb_init_secmark()
|
/kernel/linux/linux-5.10/security/selinux/ |
D | hooks.c | 4989 sk_sid, skb->secmark, SECCLASS_PACKET, in selinux_sock_rcv_skb_compat() 5065 sk_sid, skb->secmark, SECCLASS_PACKET, in selinux_socket_sock_rcv_skb() 5578 peer_sid, skb->secmark, in selinux_ip_forward() 5691 sksec->sid, skb->secmark, in selinux_ip_postroute_compat() 5815 peer_sid, skb->secmark, in selinux_ip_postroute()
|
/kernel/linux/linux-5.10/net/core/ |
D | skbuff.c | 972 CHECK_SKB_FIELD(secmark); in __copy_skb_header()
|