Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24-rc6 /kernel/utsname_sysctl.c

Filename:/kernel/utsname_sysctl.c
Lines Added:4
Lines Deleted:0
Also changed in: (Previous) 2.6.24-rc5  2.6.24-rc4  2.6.24-rc3-git7  2.6.24-rc3-git6  2.6.24-rc3-git5  2.6.23 
(Following) 2.6.24-rc7  2.6.24-rc8  2.6.24  2.6.27-rc4-git2  2.6.27-rc4-git3  2.6.27-rc4-git4 

Location
[  2.6.24-rc6
  [  kernel
     o  utsname_sysctl.c

Patch

diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c
index c76c064..fe3a56c 100644
--- a/kernel/utsname_sysctl.c
+++ b/kernel/utsname_sysctl.c
@@ -18,6 +18,10 @@
 static void *get_uts(ctl_table *table, int write)
 {
    char *which = table->data;
+   struct uts_namespace *uts_ns;
+
+   uts_ns = current->nsproxy->uts_ns;
+   which = (which - (char *)&init_uts_ns) + (char *)uts_ns;
 
    if (!write)
       down_read(&uts_sem);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.