Home
last modified time | relevance | path

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

/linux/net/netfilter/
A 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()
A Dxt_SECMARK.c29 u32 secmark = 0; in secmark_tg() local
33 secmark = info->secid; in secmark_tg()
39 skb->secmark = secmark; in secmark_tg()
A Dnft_meta.c370 *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 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()
A 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()
A Dnf_conntrack_netlink.c345 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 Dnf_conntrack_standalone.c182 ret = security_secid_to_secctx(ct->secmark, &secctx, &len); in ct_show_secctx()
A Dnf_conntrack_core.c1682 ct->secmark = exp->master->secmark; in init_conntrack()
/linux/security/apparmor/
A 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 …]
A 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()
A Dlsm.c1057 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 Dpolicy.c230 kfree_sensitive(profile->secmark[i].label); in aa_free_profile()
231 kfree_sensitive(profile->secmark); in aa_free_profile()
/linux/security/smack/
A Dsmack_netfilter.c32 skb->secmark = skp->smk_secid; in smack_ip_output()
A Dsmack_lsm.c3852 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 Dpolicy.h155 struct aa_secmark *secmark; member
/linux/include/net/netfilter/
A Dnf_conntrack.h114 u_int32_t secmark; member
/linux/include/linux/
A Dskbuff.h910 __u32 secmark; member
4432 to->secmark = from->secmark; in skb_copy_secmark()
4437 skb->secmark = 0; in skb_init_secmark()
/linux/security/selinux/
A Dhooks.c5133 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 Dskbuff.c1036 CHECK_SKB_FIELD(secmark); in __copy_skb_header()

Completed in 78 milliseconds