[PATCH] Make linux-user-chroot useable inside vServer guests
- From: Adrian Perez <aperez igalia com>
- To: ostree-list gnome org
- Subject: [PATCH] Make linux-user-chroot useable inside vServer guests
- Date: Thu, 6 Sep 2012 06:08:54 +0300
Hi,
The buildbot I am putting together runs inside a Linux-vServer guest
container, and the linux-user-chroot tool won't work as some operations
are forbidden.
On top of this fix to linux-user-chroot, I needed to add the following
capabilities to the vServer guest:
# cat /etc/vservers/gnomeos-build1/bcapabilities
CAP_SETUID
CAP_SETGID
CAP_SYS_CHROOT
CAP_SYS_RESOURCE
CAP_SYS_ADMIN
CAP_NET_ADMIN
# cat /etc/vservers/gnomeos-build1/ccapabilities
VXC_NAMESPACE
VXC_SET_UTSNAME
VXC_BINARY_MOUNT
VXC_SECURE_MOUNT
VXC_SECURE_REMOUNT
I hope it will not be considered a problem to have this patch added,
as it disables a couple of things that linux-user-chroot does. Better
solutions and suggestions are welcome.
Regards,
Adrian Perez (1):
Skip some steps when run in a Linux-vServer guest
src/linux-user-chroot.c | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
--
1.7.12
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]