Home
last modified time | relevance | path

Searched refs:secmark (Results 1 – 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/net/netfilter/
Dxt_CONNSECMARK.c34 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()
Dxt_SECMARK.c29 u32 secmark = 0; in secmark_tg() local
33 secmark = info->secid; in secmark_tg()
39 skb->secmark = secmark; in secmark_tg()
Dnft_meta.c366 *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()
Dnft_ct.c105 *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()
Dnfnetlink_queue.c313 if (skb->secmark) in nfqnl_get_sk_secctx()
314 security_secid_to_secctx(skb->secmark, secdata, &seclen); in nfqnl_get_sk_secctx()
Dnf_conntrack_netlink.c340 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()
Dnf_conntrack_standalone.c179 ret = security_secid_to_secctx(ct->secmark, &secctx, &len); in ct_show_secctx()
Dnf_conntrack_core.c1604 ct->secmark = exp->master->secmark; in init_conntrack()
/kernel/linux/linux-5.10/security/apparmor/
Dnet.c192 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 …]
Dpolicy_unpack.c583 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()
Dlsm.c1048 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()
Dpolicy.c230 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/
Dsmack_netfilter.c34 skb->secmark = skp->smk_secid; in smack_ipv6_output()
52 skb->secmark = skp->smk_secid; in smack_ipv4_output()
Dsmack_lsm.c3844 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/
Dpolicy.h155 struct aa_secmark *secmark; member
/kernel/linux/linux-5.10/include/net/netfilter/
Dnf_conntrack.h100 u_int32_t secmark; member
/kernel/linux/linux-5.10/include/linux/
Dskbuff.h888 __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/
Dhooks.c4989 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/
Dskbuff.c972 CHECK_SKB_FIELD(secmark); in __copy_skb_header()