Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 345974 Details for
Bug 466430
net-firewall/ipt_netflow-1.8-r1 does not build with PaX kernel sys-kernel/hardened-sources-3.8.3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch for ipt_netflow 1.8 to build against hardened-sources-3.8.3
file_466430.txt (text/plain), 1.97 KB, created by
Jeremy Drake
on 2013-04-19 05:47:43 UTC
(
hide
)
Description:
patch for ipt_netflow 1.8 to build against hardened-sources-3.8.3
Filename:
MIME Type:
Creator:
Jeremy Drake
Created:
2013-04-19 05:47:43 UTC
Size:
1.97 KB
patch
obsolete
>Patch by Jeremy Drake. > >Adds support for building with PaX hardened kernel > >--- a/ipt_NETFLOW.c >+++ b/ipt_NETFLOW.c >@@ -371,14 +371,13 @@ > static int hsize_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,) > void __user *buffer, size_t *lenp, loff_t *fpos) > { >- void *orig = ctl->data; >+ ctl_table_no_const lctl = *ctl; > int ret, hsize; > > if (write) >- ctl->data = &hsize; >- ret = proc_dointvec(ctl, write, BEFORE2632(filp,) buffer, lenp, fpos); >+ lctl.data = &hsize; >+ ret = proc_dointvec(&lctl, write, BEFORE2632(filp,) buffer, lenp, fpos); > if (write) { >- ctl->data = orig; > if (hsize < 1) > return -EPERM; > return set_hashsize(hsize)?:ret; >@@ -391,6 +390,7 @@ > { > int ret; > struct ipt_netflow_sock *usock; >+ ctl_table_no_const lctl = *ctl; > > read_lock(&sock_lock); > if (list_empty(&usock_list)) { >@@ -401,8 +401,8 @@ > sndbuf = usock->sock->sk->sk_sndbuf; > read_unlock(&sock_lock); > >- ctl->data = &sndbuf; >- ret = proc_dointvec(ctl, write, BEFORE2632(filp,) buffer, lenp, fpos); >+ lctl.data = &sndbuf; >+ ret = proc_dointvec(&lctl, write, BEFORE2632(filp,) buffer, lenp, fpos); > if (!write) > return ret; > if (sndbuf < SOCK_MIN_SNDBUF) >@@ -449,12 +449,13 @@ > static int flush_procctl(ctl_table *ctl, int write, BEFORE2632(struct file *filp,) > void __user *buffer, size_t *lenp, loff_t *fpos) > { >+ ctl_table_no_const lctl = *ctl; > int ret; > int val; > > val = 0; >- ctl->data = &val; >- ret = proc_dointvec(ctl, write, BEFORE2632(filp,) buffer, lenp, fpos); >+ lctl.data = &val; >+ ret = proc_dointvec(&lctl, write, BEFORE2632(filp,) buffer, lenp, fpos); > > if (!write) > return ret;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 466430
: 345974 |
345976