X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=linux-2.6-580-show-proc-virt.patch;fp=linux-2.6-580-show-proc-virt.patch;h=d6e7bd9f46a6b587d8c0d42ff64938ccc714f4f6;hb=6df1aadeae32cd1009f5754ed4ae7820c3a69835;hp=0000000000000000000000000000000000000000;hpb=4419494b8571c70246ca3b07b762168198b21e54;p=linux-2.6.git diff --git a/linux-2.6-580-show-proc-virt.patch b/linux-2.6-580-show-proc-virt.patch new file mode 100644 index 000000000..d6e7bd9f4 --- /dev/null +++ b/linux-2.6-580-show-proc-virt.patch @@ -0,0 +1,24 @@ +diff -Nurp linux-2.6.22-570/kernel/vserver/context.c linux-2.6.22-580/kernel/vserver/context.c +--- linux-2.6.22-570/kernel/vserver/context.c 2008-02-15 20:36:20.000000000 +0100 ++++ linux-2.6.22-580/kernel/vserver/context.c 2008-02-15 20:39:37.000000000 +0100 +@@ -406,7 +406,7 @@ int get_xid_list(int index, unsigned int + int hindex, nr_xids = 0; + + /* only show current and children */ +- if (!vx_check(0, VS_ADMIN | VS_WATCH)) { ++ if (!vx_check(0, VS_ADMIN | VS_WATCH) && vx_flags(VXF_HIDE_VINFO, 0)) { + if (index > 0) + return 0; + xids[nr_xids] = vx_current_xid(); +diff -Nurp linux-2.6.22-570/kernel/vserver/network.c linux-2.6.22-580/kernel/vserver/network.c +--- linux-2.6.22-570/kernel/vserver/network.c 2008-02-15 20:36:20.000000000 +0100 ++++ linux-2.6.22-580/kernel/vserver/network.c 2008-02-15 20:40:34.000000000 +0100 +@@ -390,7 +390,7 @@ int get_nid_list(int index, unsigned int + int hindex, nr_nids = 0; + + /* only show current and children */ +- if (!nx_check(0, VS_ADMIN | VS_WATCH)) { ++ if (!nx_check(0, VS_ADMIN | VS_WATCH) && vx_flags(VXF_HIDE_VINFO, 0)) { + if (index > 0) + return 0; + nids[nr_nids] = nx_current_nid();