Setting tag linux-2.6-22-50
[linux-2.6.git] / linux-2.6-580-show-proc-virt.patch
1 diff -Nurp linux-2.6.22-570/kernel/vserver/context.c linux-2.6.22-580/kernel/vserver/context.c
2 --- linux-2.6.22-570/kernel/vserver/context.c   2008-02-15 20:36:20.000000000 +0100
3 +++ linux-2.6.22-580/kernel/vserver/context.c   2008-02-15 20:39:37.000000000 +0100
4 @@ -406,7 +406,7 @@ int get_xid_list(int index, unsigned int
5         int hindex, nr_xids = 0;
6  
7         /* only show current and children */
8 -       if (!vx_check(0, VS_ADMIN | VS_WATCH)) {
9 +       if (!vx_check(0, VS_ADMIN | VS_WATCH) && vx_flags(VXF_HIDE_VINFO, 0)) {
10                 if (index > 0)
11                         return 0;
12                 xids[nr_xids] = vx_current_xid();
13 diff -Nurp linux-2.6.22-570/kernel/vserver/network.c linux-2.6.22-580/kernel/vserver/network.c
14 --- linux-2.6.22-570/kernel/vserver/network.c   2008-02-15 20:36:20.000000000 +0100
15 +++ linux-2.6.22-580/kernel/vserver/network.c   2008-02-15 20:40:34.000000000 +0100
16 @@ -390,7 +390,7 @@ int get_nid_list(int index, unsigned int
17         int hindex, nr_nids = 0;
18  
19         /* only show current and children */
20 -       if (!nx_check(0, VS_ADMIN | VS_WATCH)) {
21 +       if (!nx_check(0, VS_ADMIN | VS_WATCH) && vx_flags(VXF_HIDE_VINFO, 0)) {
22                 if (index > 0)
23                         return 0;
24                 nids[nr_nids] = nx_current_nid();