[PATCH] /proc/vmstat is visible inside vps
Patch from Pavel (xemul@): Alow /proc/vmstat entry inside vps. Bug #56186 --- ./kernel/veowner.c.vmstt 2005-12-14 16:24:14.000000000 +0300 +++ ./kernel/veowner.c 2005-12-15 15:35:17.321904352 +0300 @@ -97,6 +97,7 @@ static void prepare_proc_misc(void) "vz", "user_beancounters", "cmdline", + "vmstat", NULL, }; char **p;
Re: [PATCH] /proc/vmstat is visible inside vps
Patch from Pavel (xemul@): Alow /proc/vmstat entry inside vps, but keep it empty. Bug #56186 --- ./kernel/veowner.c.vmstt 2005-12-14 16:24:14.000000000 +0300 +++ ./kernel/veowner.c 2005-12-15 15:35:17.321904352 +0300 @@ -97,6 +97,7 @@ static void prepare_proc_misc(void) "vz", "user_beancounters", "cmdline", + "vmstat", NULL, }; char **p; --- ./mm/page_alloc.c.vmstt 2005-12-14 16:24:14.000000000 +0300 +++ ./mm/page_alloc.c 2005-12-15 16:22:02.789408464 +0300 @@ -1756,6 +1756,9 @@ static void *vmstat_start(struct seq_fil { struct page_state *ps; + if (!ve_is_super(get_exec_env())) + return NULL; + if (*pos >= ARRAY_SIZE(vmstat_text)) return NULL;