diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-02-25 11:05:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-02-25 13:11:42 +0000 |
commit | b5541800d4d765b8252488dc841be11ca3fba53e (patch) | |
tree | 995c2e8f0c017984c92e59429193dfb501d7400c /testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.10.y-kernel.patch | |
parent | 38917a1aee7da065cabd8656e76e9816a0a119e0 (diff) | |
download | aports-b5541800d4d765b8252488dc841be11ca3fba53e.tar.bz2 aports-b5541800d4d765b8252488dc841be11ca3fba53e.tar.xz |
testing/ipt-netflow-grsec: fix build with 3.12 kernel
Diffstat (limited to 'testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.10.y-kernel.patch')
-rw-r--r-- | testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.10.y-kernel.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.10.y-kernel.patch b/testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.10.y-kernel.patch new file mode 100644 index 0000000000..99ebffe380 --- /dev/null +++ b/testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.10.y-kernel.patch @@ -0,0 +1,32 @@ +From b1588f736edbeeb2b3de6081e92dde8840cef66d Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Mon, 5 Aug 2013 12:56:19 +0000 +Subject: [PATCH] Fix compilation with 3.10.y kernel + +use proc_create instead of create_proc_entry +--- + ipt_NETFLOW.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/ipt_NETFLOW.c b/ipt_NETFLOW.c +index 4e1b9f3..758bccc 100644 +--- a/ipt_NETFLOW.c ++++ b/ipt_NETFLOW.c +@@ -1432,12 +1432,12 @@ static int __init ipt_netflow_init(void) + } + + #ifdef CONFIG_PROC_FS +- proc_stat = create_proc_entry("ipt_netflow", S_IRUGO, INIT_NET(proc_net_stat)); ++ proc_stat = proc_create("ipt_netflow", S_IRUGO, INIT_NET(proc_net_stat), ++ &nf_seq_fops); + if (!proc_stat) { + printk(KERN_ERR "Unable to create /proc/net/stat/ipt_netflow entry\n"); + goto err_free_netflow_slab; + } +- proc_stat->proc_fops = &nf_seq_fops; + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) + proc_stat->owner = THIS_MODULE; + #endif +-- +1.8.3.4 + |