blob: ff3fc952222aeaffcfa8a869d9444958658be137 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- grsecurity/grsec_disabled.c~ 2003-09-14 12:50:59.000000000 +0100
+++ grsecurity/grsec_disabled.c 2003-09-14 12:53:11.000000000 +0100
@@ -13,11 +13,18 @@
#include <linux/skbuff.h>
#include <linux/ip.h>
#include <linux/sysctl.h>
+#include <linux/grdefs.h>
#ifdef CONFIG_SYSCTL
__u32
-gr_handle_sysctl(const struct ctl_table * table, __u32 mode)
+gr_handle_sysctl(const struct ctl_table * table, const void *oldval, const void *newval)
{
+ __u32 mode = 0;
+ if (oldval)
+ mode |= GR_READ;
+ if (newval)
+ mode |= GR_WRITE;
+
return mode;
}
#endif
|