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
4 #include <linux/ctype.h>
5 #include <linux/binfmts.h>
6 #include <linux/rwsem.h>
7 +#include <linux/version.h>
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)
15 +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20)
16 sysctl_root_table = register_sysctl_table(cap_over_root_table, 0);
18 + sysctl_root_table = register_sysctl_table(cap_over_root_table);
21 if(!sysctl_root_table)