Skip to content

iptables: add secmark match

Mr Dash Four netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iptables (userspace): add secmark matchextensions/libxt_secmark.c extensions/libxt_secmark.man include/linux/netfilter/xt_secmark.h+146 -04 replies
2/2iptables (kernel): add secmark matchinclude/uapi/linux/netfilter/Kbuild include/uapi/linux/netfilter/xt_secmark.h net/netfilter/Kconfig +2 more+153 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] iptables: add secmark match

The secmark match is used to match the security mark value associated with a packet. For this extension to be available, the appropriate SELinux support needs to be installed and present in the Linux kernel.

Examples:

iptables -I INPUT -p icmp --icmp-type 3 -m secmark --selctx system_u:object_r:dns_packet_t:s0 -j ACCEPT

iptables -I OUTPUT -m secmark --selctx system_u:object_r:ssh_packet_t:s0 -j DROP

Mr Dash Four (2):
iptables (userspace): add secmark match
iptables (kernel): add secmark match