]> git.pld-linux.org Git - packages/CapOver.git/blob - CapOver-register_sysctl.patch
- patch against kernels > 2.6.20
[packages/CapOver.git] / CapOver-register_sysctl.patch
1 --- CapOver-0.9.3/cap_over.c    2004-10-10 20:25:38.000000000 +0200
2 +++ CapOver-0.9.3/cap_over.c    2007-08-23 13:00:32.467644750 +0200
3 @@ -22,6 +22,7 @@
4  #include <linux/ctype.h>
5  #include <linux/binfmts.h>
6  #include <linux/rwsem.h>
7 +#include <linux/version.h>
8  
9  /* Should be in include/linux/sysctl.h; want to be non-invasive */
10  #define KERN_CAP_OVER 100 /* FRAGILE; 2.6.8 max is 65 */
11 @@ -669,7 +670,12 @@ static int __init cap_over_init(void)
12     if(err)
13        return err;
14  
15 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20)
16     sysctl_root_table = register_sysctl_table(cap_over_root_table, 0);
17 +#else
18 +   sysctl_root_table = register_sysctl_table(cap_over_root_table);
19 +#endif
20 +
21     if(!sysctl_root_table)
22        {
23        printk(KERN_WARNING
This page took 0.074826 seconds and 3 git commands to generate.