]> git.pld-linux.org Git - packages/CapOver.git/commitdiff
- patch against kernels > 2.6.20 master
authorzbyniu <zbyniu@pld-linux.org>
Thu, 23 Aug 2007 11:11:08 +0000 (11:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    CapOver-register_sysctl.patch -> 1.1

CapOver-register_sysctl.patch [new file with mode: 0644]

diff --git a/CapOver-register_sysctl.patch b/CapOver-register_sysctl.patch
new file mode 100644 (file)
index 0000000..674d8d7
--- /dev/null
@@ -0,0 +1,23 @@
+--- CapOver-0.9.3/cap_over.c   2004-10-10 20:25:38.000000000 +0200
++++ CapOver-0.9.3/cap_over.c   2007-08-23 13:00:32.467644750 +0200
+@@ -22,6 +22,7 @@
+ #include <linux/ctype.h>
+ #include <linux/binfmts.h>
+ #include <linux/rwsem.h>
++#include <linux/version.h>
+ /* Should be in include/linux/sysctl.h; want to be non-invasive */
+ #define KERN_CAP_OVER 100 /* FRAGILE; 2.6.8 max is 65 */
+@@ -669,7 +670,12 @@ static int __init cap_over_init(void)
+    if(err)
+       return err;
++#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20)
+    sysctl_root_table = register_sysctl_table(cap_over_root_table, 0);
++#else
++   sysctl_root_table = register_sysctl_table(cap_over_root_table);
++#endif
++
+    if(!sysctl_root_table)
+       {
+       printk(KERN_WARNING
This page took 0.086047 seconds and 4 git commands to generate.