diff options
Diffstat (limited to 'vserver-sources/old/2.1.1_rc25-r1/4415_vs2.1.1-utsname-fix02.patch')
-rw-r--r-- | vserver-sources/old/2.1.1_rc25-r1/4415_vs2.1.1-utsname-fix02.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vserver-sources/old/2.1.1_rc25-r1/4415_vs2.1.1-utsname-fix02.patch b/vserver-sources/old/2.1.1_rc25-r1/4415_vs2.1.1-utsname-fix02.patch new file mode 100644 index 0000000..dca0254 --- /dev/null +++ b/vserver-sources/old/2.1.1_rc25-r1/4415_vs2.1.1-utsname-fix02.patch @@ -0,0 +1,13 @@ +Index: linux-2.6.17/kernel/sys.c +=================================================================== +--- linux-2.6.17.orig/kernel/sys.c ++++ linux-2.6.17/kernel/sys.c +@@ -1699,7 +1699,7 @@ asmlinkage long sys_sethostname(char __u + int errno; + char tmp[__NEW_UTS_LEN]; + +- if (!capable(CAP_SYS_ADMIN)) ++ if (!vx_capable(CAP_SYS_ADMIN, VXC_SET_UTSNAME)) + return -EPERM; + if (len < 0 || len > __NEW_UTS_LEN) + return -EINVAL; |