Re: [Vserver] hostname ?

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Fri 07 Jul 2006 - 21:09:43 BST
Message-ID: <44AEBF87.9060201@hozac.com>

Gregory (Grisha) Trubetskoy wrote:
>
> Sorry if this was already asked - I searched and couldn't find anything.
> Recently I went from 2.6.12.4-vs2.0 to 2.6.17-vs2.0.2-rc24 on one of the
> machines (needed 2.6.17 because of a hardware issue).
>
> Inside a vserver:
>
> with 2.6.12.4-vs2.0:
>
> # hostname blah
> # hostname
> blah
>
> with 2.6.17-vs2.0.2-rc24:
>
> # hostname blah
> hostname: you must be root to change the host name
>
> The configurations are identical:
>
> # cat bcapabilities
> ^29
> ^30
> # cat ccapabilities
> mount
>
> Obviously I don't want to give the CAP_SYS_ADMIN capability. Any advice
> would be very much appreciated!!

What you want is the utsname ccapability, although that is given by
default to guests (at least by util-vserver 0.30.210). Did you happen to
change tools as well? What does grep CCap /proc/virtual/<xid>/status on
the host say?

-- 
Daniel Hokka Zakrisson
GPG id: 06723412
GPG fingerprint: A455 4DF3 990A 431F FECA  7947 6136 DDA2 0672 3412
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Jul 7 21:09:41 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 07 Jul 2006 - 21:09:44 BST by hypermail 2.1.8