File tree Expand file tree Collapse file tree 11 files changed +237
-194
lines changed Expand file tree Collapse file tree 11 files changed +237
-194
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ header-y += xt_limit.h
26
26
header-y += xt_mac.h
27
27
header-y += xt_mark.h
28
28
header-y += xt_multiport.h
29
+ header-y += xt_owner.h
29
30
header-y += xt_pkttype.h
30
31
header-y += xt_policy.h
31
32
header-y += xt_realm.h
Original file line number Diff line number Diff line change
1
+ #ifndef _XT_OWNER_MATCH_H
2
+ #define _XT_OWNER_MATCH_H
3
+
4
+ enum {
5
+ XT_OWNER_UID = 1 << 0 ,
6
+ XT_OWNER_GID = 1 << 1 ,
7
+ XT_OWNER_SOCKET = 1 << 2 ,
8
+ };
9
+
10
+ struct xt_owner_match_info {
11
+ u_int32_t uid ;
12
+ u_int32_t gid ;
13
+ u_int8_t match , invert ;
14
+ };
15
+
16
+ #endif /* _XT_OWNER_MATCH_H */
Original file line number Diff line number Diff line change @@ -111,15 +111,6 @@ config IP_NF_MATCH_TTL
111
111
112
112
To compile it as a module, choose M here. If unsure, say N.
113
113
114
- config IP_NF_MATCH_OWNER
115
- tristate "Owner match support"
116
- depends on IP_NF_IPTABLES
117
- help
118
- Packet owner matching allows you to match locally-generated packets
119
- based on who created them: the user, group, process or session.
120
-
121
- To compile it as a module, choose M here. If unsure, say N.
122
-
123
114
config IP_NF_MATCH_ADDRTYPE
124
115
tristate 'address type match support'
125
116
depends on IP_NF_IPTABLES
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ obj-$(CONFIG_IP_NF_MATCH_ADDRTYPE) += ipt_addrtype.o
45
45
obj-$(CONFIG_IP_NF_MATCH_AH) += ipt_ah.o
46
46
obj-$(CONFIG_IP_NF_MATCH_ECN) += ipt_ecn.o
47
47
obj-$(CONFIG_IP_NF_MATCH_IPRANGE) += ipt_iprange.o
48
- obj-$(CONFIG_IP_NF_MATCH_OWNER) += ipt_owner.o
49
48
obj-$(CONFIG_IP_NF_MATCH_RECENT) += ipt_recent.o
50
49
obj-$(CONFIG_IP_NF_MATCH_TOS) += ipt_tos.o
51
50
obj-$(CONFIG_IP_NF_MATCH_TTL) += ipt_ttl.o
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -89,15 +89,6 @@ config IP6_NF_MATCH_HL
89
89
90
90
To compile it as a module, choose M here. If unsure, say N.
91
91
92
- config IP6_NF_MATCH_OWNER
93
- tristate "Owner match support"
94
- depends on IP6_NF_IPTABLES
95
- help
96
- Packet owner matching allows you to match locally-generated packets
97
- based on who created them: the user, group, process or session.
98
-
99
- To compile it as a module, choose M here. If unsure, say N.
100
-
101
92
config IP6_NF_MATCH_IPV6HEADER
102
93
tristate "IPv6 Extension Headers Match"
103
94
depends on IP6_NF_IPTABLES
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ obj-$(CONFIG_IP6_NF_MATCH_HL) += ip6t_hl.o
23
23
obj-$(CONFIG_IP6_NF_MATCH_IPV6HEADER) += ip6t_ipv6header.o
24
24
obj-$(CONFIG_IP6_NF_MATCH_MH) += ip6t_mh.o
25
25
obj-$(CONFIG_IP6_NF_MATCH_OPTS) += ip6t_hbh.o
26
- obj-$(CONFIG_IP6_NF_MATCH_OWNER) += ip6t_owner.o
27
26
obj-$(CONFIG_IP6_NF_MATCH_RT) += ip6t_rt.o
28
27
29
28
# targets
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -554,6 +554,14 @@ config NETFILTER_XT_MATCH_MARK
554
554
555
555
To compile it as a module, choose M here. If unsure, say N.
556
556
557
+ config NETFILTER_XT_MATCH_OWNER
558
+ tristate '"owner" match support'
559
+ depends on NETFILTER_XTABLES
560
+ ---help---
561
+ Socket owner matching allows you to match locally-generated packets
562
+ based on who created the socket: the user or group. It is also
563
+ possible to check whether a socket actually exists.
564
+
557
565
config NETFILTER_XT_MATCH_POLICY
558
566
tristate 'IPsec "policy" match support'
559
567
depends on NETFILTER_XTABLES && XFRM
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ obj-$(CONFIG_NETFILTER_XT_MATCH_LIMIT) += xt_limit.o
67
67
obj-$(CONFIG_NETFILTER_XT_MATCH_MAC) += xt_mac.o
68
68
obj-$(CONFIG_NETFILTER_XT_MATCH_MARK) += xt_mark.o
69
69
obj-$(CONFIG_NETFILTER_XT_MATCH_MULTIPORT) += xt_multiport.o
70
+ obj-$(CONFIG_NETFILTER_XT_MATCH_OWNER) += xt_owner.o
70
71
obj-$(CONFIG_NETFILTER_XT_MATCH_PHYSDEV) += xt_physdev.o
71
72
obj-$(CONFIG_NETFILTER_XT_MATCH_PKTTYPE) += xt_pkttype.o
72
73
obj-$(CONFIG_NETFILTER_XT_MATCH_POLICY) += xt_policy.o
You can’t perform that action at this time.
0 commit comments