aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter/xt_owner.h
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@computergmbh.de>2007-12-04 23:27:38 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 14:55:55 -0800
commit0265ab44bacc1a1e0e3f5873d8ca2d5a29e33db2 (patch)
tree977ab0ae0832876f5e46fb19e0047364e0bcdf45 /include/linux/netfilter/xt_owner.h
parent[NETFILTER]: x_tables: remove obsolete overflow check (diff)
downloadlinux-dev-0265ab44bacc1a1e0e3f5873d8ca2d5a29e33db2.tar.xz
linux-dev-0265ab44bacc1a1e0e3f5873d8ca2d5a29e33db2.zip
[NETFILTER]: merge ipt_owner/ip6t_owner in xt_owner
xt_owner merges ipt_owner and ip6t_owner, and adds a flag to match on socket (non-)existence. Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netfilter/xt_owner.h')
-rw-r--r--include/linux/netfilter/xt_owner.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/netfilter/xt_owner.h b/include/linux/netfilter/xt_owner.h
new file mode 100644
index 000000000000..eacd34efebd5
--- /dev/null
+++ b/include/linux/netfilter/xt_owner.h
@@ -0,0 +1,16 @@
+#ifndef _XT_OWNER_MATCH_H
+#define _XT_OWNER_MATCH_H
+
+enum {
+ XT_OWNER_UID = 1 << 0,
+ XT_OWNER_GID = 1 << 1,
+ XT_OWNER_SOCKET = 1 << 2,
+};
+
+struct xt_owner_match_info {
+ u_int32_t uid;
+ u_int32_t gid;
+ u_int8_t match, invert;
+};
+
+#endif /* _XT_OWNER_MATCH_H */