/openbmc/linux/net/netfilter/ |
H 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()
|
H 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()
|
H A D | nft_ct_fast.c | 52 *dest = ct->secmark; in nft_ct_get_fast_eval()
|
H A D | nft_meta.c | 362 *dest = skb->secmark; in nft_meta_get_eval() 450 skb->secmark = value; in nft_meta_set_eval() 944 skb->secmark = priv->secid; in nft_secmark_obj_eval()
|
H A D | nft_ct.c | 96 *dest = ct->secmark; in nft_ct_get_eval() 299 if (ct->secmark != value) { in nft_ct_set_eval() 300 ct->secmark = value; in nft_ct_set_eval()
|
H A D | nfnetlink_queue.c | 330 if (skb->secmark) in nfqnl_get_sk_secctx() 331 security_secid_to_secctx(skb->secmark, secdata, &seclen); in nfqnl_get_sk_secctx()
|
H A D | nf_conntrack_netlink.c | 362 ret = security_secid_to_secctx(ct->secmark, &secctx, &len); in ctnetlink_dump_secctx() 668 ret = security_secid_to_secctx(ct->secmark, NULL, &len); in ctnetlink_secctx_size() 815 if ((events & (1 << IPCT_SECMARK) || ct->secmark) in ctnetlink_conntrack_event() 2717 if (ct->secmark && ctnetlink_dump_secctx(skb, ct) < 0) in __ctnetlink_glue_build()
|
H A D | nf_conntrack_standalone.c | 179 ret = security_secid_to_secctx(ct->secmark, &secctx, &len); in ct_show_secctx()
|
H A D | nf_conntrack_core.c | 1775 ct->secmark = exp->master->secmark; in init_conntrack()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-filter/nftables/nftables/ |
H A D | 0001-tests-shell-skip-secmark-tests-if-kernel-does-not-su.patch | 4 Subject: [PATCH] tests: shell: skip secmark tests if kernel does not support 14 tests/shell/features/secmark.nft | 7 +++++++ 17 create mode 100644 tests/shell/features/secmark.nft 19 diff --git a/tests/shell/features/secmark.nft b/tests/shell/features/secmark.nft 23 +++ b/tests/shell/features/secmark.nft 28 + secmark ssh_server {
|
/openbmc/linux/security/apparmor/ |
H A D | net.c | 200 static int apparmor_secmark_init(struct aa_secmark *secmark) in apparmor_secmark_init() argument 204 if (secmark->label[0] == '*') { in apparmor_secmark_init() 205 secmark->secid = AA_SECID_WILDCARD; in apparmor_secmark_init() 210 secmark->label, strlen(secmark->label), in apparmor_secmark_init() 216 secmark->secid = label->secid; in apparmor_secmark_init() 233 if (!rules->secmark[i].secid) { in aa_secmark_perm() 234 ret = apparmor_secmark_init(&rules->secmark[i]); in aa_secmark_perm() 239 if (rules->secmark[i].secid == secid || in aa_secmark_perm() 240 rules->secmark[i].secid == AA_SECID_WILDCARD) { in aa_secmark_perm() 241 if (rules->secmark[i].deny) in aa_secmark_perm() [all …]
|
H A D | policy_unpack.c | 575 rules->secmark = kcalloc(size, sizeof(struct aa_secmark), in unpack_secmark() 577 if (!rules->secmark) in unpack_secmark() 583 if (!unpack_u8(e, &rules->secmark[i].audit, NULL)) in unpack_secmark() 585 if (!unpack_u8(e, &rules->secmark[i].deny, NULL)) in unpack_secmark() 587 if (!aa_unpack_strdup(e, &rules->secmark[i].label, NULL)) in unpack_secmark() 599 if (rules->secmark) { in unpack_secmark() 601 kfree(rules->secmark[i].label); in unpack_secmark() 602 kfree(rules->secmark); in unpack_secmark() 604 rules->secmark = NULL; in unpack_secmark()
|
H A D | lsm.c | 1130 if (!skb->secmark) in apparmor_socket_sock_rcv_skb() 1141 skb->secmark, sk); in apparmor_socket_sock_rcv_skb() 1241 if (!skb->secmark) in apparmor_inet_conn_request() 1245 skb->secmark, sk); in apparmor_inet_conn_request() 1846 if (!skb->secmark) in apparmor_ip_postroute() 1855 skb->secmark, sk)) in apparmor_ip_postroute()
|
H A D | policy.c | 216 kfree_sensitive(rules->secmark[i].label); in free_ruleset() 217 kfree_sensitive(rules->secmark); in free_ruleset()
|
/openbmc/linux/security/smack/ |
H A D | smack_netfilter.c | 32 skb->secmark = skp->smk_secid; in smack_ip_output()
|
H A D | smack_lsm.c | 4016 if (skb == NULL || skb->secmark == 0) in smack_from_skb() 4019 return smack_from_secid(skb->secmark); in smack_from_skb()
|
/openbmc/linux/security/apparmor/include/ |
H A D | policy.h | 149 struct aa_secmark *secmark; member
|
/openbmc/linux/include/net/netfilter/ |
H A D | nf_conntrack.h | 118 u_int32_t secmark; member
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-filter/nftables/ |
H A D | nftables_1.0.9.bb | 16 file://0001-tests-shell-skip-secmark-tests-if-kernel-does-not-su.patch \
|
/openbmc/linux/include/linux/ |
H A D | skbuff.h | 1018 __u32 secmark; 4814 to->secmark = from->secmark; in skb_copy_secmark() 4819 skb->secmark = 0; in skb_init_secmark()
|
/openbmc/linux/security/selinux/ |
H A D | hooks.c | 5064 err = avc_has_perm(sk_sid, skb->secmark, SECCLASS_PACKET, in selinux_sock_rcv_skb_compat() 5133 err = avc_has_perm(sk_sid, skb->secmark, SECCLASS_PACKET, in selinux_socket_sock_rcv_skb() 5690 if (avc_has_perm(peer_sid, skb->secmark, in selinux_ip_forward() 5767 if (avc_has_perm(sksec->sid, skb->secmark, in selinux_ip_postroute_compat() 5889 if (avc_has_perm(peer_sid, skb->secmark, in selinux_ip_postroute()
|
/openbmc/linux/net/core/ |
H A D | skbuff.c | 1403 CHECK_SKB_FIELD(secmark); in __copy_skb_header()
|
/openbmc/ |
H A D | opengrok1.0.log | 37800 …d/meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-skip-secmark-tests-if-kernel-d…
|
H A D | opengrok2.0.log | 37420 …d/meta-networking/recipes-filter/nftables/nftables/0001-tests-shell-skip-secmark-tests-if-kernel-d…
|