[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>
This commit is contained in:
Jan Engelhardt
2007-12-04 23:27:38 -08:00
committed by David S. Miller
parent 9e67d5a739
commit 0265ab44ba
11 changed files with 237 additions and 194 deletions
+1
View File
@@ -26,6 +26,7 @@ header-y += xt_limit.h
header-y += xt_mac.h
header-y += xt_mark.h
header-y += xt_multiport.h
header-y += xt_owner.h
header-y += xt_pkttype.h
header-y += xt_policy.h
header-y += xt_realm.h
+16
View File
@@ -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 */