aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ipt-netflow-grsec/constify.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-12-11 12:38:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-12-11 12:38:46 +0000
commite418279bc16527fc9c1f3a0afa4c9bf78c2d91d0 (patch)
treeb538d60e41bc6d617f8862a6cfdd432eaf9032d2 /unmaintained/ipt-netflow-grsec/constify.patch
parent74a50a8d3f9708fbf920fa1b1de374688fd36d03 (diff)
downloadaports-e418279bc16527fc9c1f3a0afa4c9bf78c2d91d0.tar.bz2
aports-e418279bc16527fc9c1f3a0afa4c9bf78c2d91d0.tar.xz
testing/ipt-netflow*: move to unmaintained
Diffstat (limited to 'unmaintained/ipt-netflow-grsec/constify.patch')
-rw-r--r--unmaintained/ipt-netflow-grsec/constify.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/unmaintained/ipt-netflow-grsec/constify.patch b/unmaintained/ipt-netflow-grsec/constify.patch
new file mode 100644
index 0000000000..b92ed76a64
--- /dev/null
+++ b/unmaintained/ipt-netflow-grsec/constify.patch
@@ -0,0 +1,35 @@
+--- ./ipt_NETFLOW.c.orig 2013-04-12 14:18:39.176959425 +0000
++++ ./ipt_NETFLOW.c 2013-04-12 14:23:29.779638950 +0000
+@@ -367,8 +367,13 @@
+ #define BEFORE2632(x,y)
+ #endif
+
++/* PAX need to know that we are allowed to write */
++#ifndef CONSTIFY_PLUGIN
++#define ctl_table_no_const ctl_table
++#endif
++
+ /* sysctl /proc/sys/net/netflow */
+-static int hsize_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
++static int hsize_procctl(ctl_table_no_const *ctl, int write, BEFORE2632(struct file *filp,)
+ void __user *buffer, size_t *lenp, loff_t *fpos)
+ {
+ void *orig = ctl->data;
+@@ -386,7 +391,7 @@
+ return ret;
+ }
+
+-static int sndbuf_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
++static int sndbuf_procctl(ctl_table_no_const *ctl, int write, BEFORE2632(struct file *filp,)
+ void __user *buffer, size_t *lenp, loff_t *fpos)
+ {
+ int ret;
+@@ -446,7 +451,7 @@
+ return ret;
+ }
+
+-static int flush_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,)
++static int flush_procctl(ctl_table_no_const *ctl, int write, BEFORE2632(struct file *filp,)
+ void __user *buffer, size_t *lenp, loff_t *fpos)
+ {
+ int ret;