/[vps]/vserver-sources/2.0.2_rc25-r1/4413_vs2.0.2-utsname-fix02.patch
Gentoo

Contents of /vserver-sources/2.0.2_rc25-r1/4413_vs2.0.2-utsname-fix02.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 397 - (show annotations) (download)
Sun Jul 9 08:58:05 2006 UTC (12 years, 3 months ago) by phreak
File size: 428 byte(s)
Adding patchsets for 2.0.2_rc25-r1 and 2.1.1_rc25-r1 to the tree
1 Index: linux-2.6.17/kernel/sys.c
2 ===================================================================
3 --- linux-2.6.17.orig/kernel/sys.c
4 +++ linux-2.6.17/kernel/sys.c
5 @@ -1698,7 +1698,7 @@ asmlinkage long sys_sethostname(char __u
6 int errno;
7 char tmp[__NEW_UTS_LEN];
8
9 - if (!capable(CAP_SYS_ADMIN))
10 + if (!vx_capable(CAP_SYS_ADMIN, VXC_SET_UTSNAME))
11 return -EPERM;
12 if (len < 0 || len > __NEW_UTS_LEN)
13 return -EINVAL;

  ViewVC Help
Powered by ViewVC 1.1.20