]> git.pld-linux.org Git - packages/iptables.git/blob - iptables-owner-struct-size-vs.patch
- allow to build ipt_IPV4OPTSSTRIP,ipt_rpc,xt_layer7 on non-dist kernel (using indivi...
[packages/iptables.git] / iptables-owner-struct-size-vs.patch
1 --- iptables-1.4.8/extensions/libxt_owner.c.org 2010-06-07 21:59:55.086564655 +0200
2 +++ iptables-1.4.8/extensions/libxt_owner.c     2010-06-07 22:06:25.259858702 +0200
3 @@ -24,11 +24,15 @@
4         IPT_OWNER_PID   = 0x04,
5         IPT_OWNER_SID   = 0x08,
6         IPT_OWNER_COMM  = 0x10,
7 +       IPT_OWNER_NID   = 0x20,
8 +       IPT_OWNER_XID   = 0x40,
9         IP6T_OWNER_UID  = IPT_OWNER_UID,
10         IP6T_OWNER_GID  = IPT_OWNER_GID,
11         IP6T_OWNER_PID  = IPT_OWNER_PID,
12         IP6T_OWNER_SID  = IPT_OWNER_SID,
13         IP6T_OWNER_COMM = IPT_OWNER_COMM,
14 +       IP6T_OWNER_NID  = IPT_OWNER_NID,
15 +       IP6T_OWNER_XID  = IPT_OWNER_XID,
16  };
17  
18  struct ipt_owner_info {
19 @@ -38,6 +42,8 @@
20         pid_t sid;
21         char comm[16];
22         u_int8_t match, invert; /* flags */
23 +       u_int32_t nid;
24 +       u_int32_t xid;
25  };
26  
27  struct ip6t_owner_info {
28 @@ -47,6 +53,8 @@
29         pid_t sid;
30         char comm[16];
31         u_int8_t match, invert; /* flags */
32 +       u_int32_t nid;
33 +       u_int32_t xid;
34  };
35  
36  /*
37 --- iptables-1.4.10/include/linux/netfilter/xt_owner.h~ 2010-10-29 16:37:22.000000000 +0200
38 +++ iptables-1.4.10/include/linux/netfilter/xt_owner.h  2010-12-12 14:50:24.192495705 +0100
39 @@ -7,12 +7,16 @@
40         XT_OWNER_UID    = 1 << 0,
41         XT_OWNER_GID    = 1 << 1,
42         XT_OWNER_SOCKET = 1 << 2,
43 +       XT_OWNER_NID    = 1 << 3,
44 +       XT_OWNER_XID    = 1 << 4,
45  };
46  
47  struct xt_owner_match_info {
48         __u32 uid_min, uid_max;
49         __u32 gid_min, gid_max;
50         __u8 match, invert;
51 +       __u32 nid;
52 +       __u32 xid;
53  };
54  
55  #endif /* _XT_OWNER_MATCH_H */
This page took 0.029394 seconds and 3 git commands to generate.