1 --- linux-2.6.28/fs/proc/Kconfig~ 2008-11-20 23:26:34.000000000 +0100
2 +++ linux-2.6.28/fs/proc/Kconfig 2008-12-01 20:37:12.000000000 +0100
6 config PROC_PAGE_MONITOR
8 - depends on PROC_FS && MMU && !GRKERNSEC
10 + depends on PROC_FS && MMU
11 bool "Enable /proc page monitoring" if EMBEDDED
13 Various /proc files exist to monitor process memory utilization:
14 --- linux-2.6.28/mm/slab.c~ 2009-01-18 02:10:12.395711069 +0100
15 +++ linux-2.6.28/mm/slab.c 2009-01-18 02:18:05.632401077 +0100
16 @@ -4496,8 +4496,15 @@
18 static int __init slab_proc_init(void)
20 -#if !defined(CONFIG_GRKERNSEC_PROC_ADD)
21 - proc_create("slabinfo",S_IWUSR|S_IRUGO,NULL,&proc_slabinfo_operations);
22 + int gr_mode = S_IWUSR|S_IRUGO;
23 +#ifdef CONFIG_GRKERNSEC_PROC_USER
25 +#elif defined(CONFIG_GRKERNSEC_PROC_USERGROUP)
26 + gr_mode = S_IRUSR | S_IRGRP;
29 +#ifdef CONFIG_GRKERNSEC_PROC_ADD
30 + proc_create("slabinfo",gr_mode,NULL,&proc_slabinfo_operations);
31 #ifdef CONFIG_DEBUG_SLAB_LEAK
32 proc_create("slab_allocators", 0, NULL, &proc_slabstats_operations);