Re: [Qemu-devel] [PATCH] linux-user: allow to use sudo in guest

2013-01-26 Thread Laurent Vivier
In fact, this patch is useless as binfmt_mist provides a flag to manage credentials and security token. A new patch follows... Regards, Laurent Le jeudi 20 décembre 2012 à 21:56 +0100, Laurent Vivier a écrit : When qemu-linux-user is used in a linux container or chroot, if it needs to load

Re: [Qemu-devel] [PATCH] linux-user: allow to use sudo in guest

2013-01-02 Thread Laurent Vivier
Le mercredi 02 janvier 2013 à 01:16 +, Peter Maydell a écrit : On 20 December 2012 20:56, Laurent Vivier laur...@vivier.eu wrote: When qemu-linux-user is used in a linux container or chroot, if it needs to load binaries with SUID/SGID bits, it needs to have root rights to be able to

Re: [Qemu-devel] [PATCH] linux-user: allow to use sudo in guest

2013-01-01 Thread Laurent Vivier
Ping ! Le jeudi 20 décembre 2012 à 21:56 +0100, Laurent Vivier a écrit : When qemu-linux-user is used in a linux container or chroot, if it needs to load binaries with SUID/SGID bits, it needs to have root rights to be able to change UID/GID. To do that, we need to install it with SUID bits

Re: [Qemu-devel] [PATCH] linux-user: allow to use sudo in guest

2013-01-01 Thread Peter Maydell
On 20 December 2012 20:56, Laurent Vivier laur...@vivier.eu wrote: When qemu-linux-user is used in a linux container or chroot, if it needs to load binaries with SUID/SGID bits, it needs to have root rights to be able to change UID/GID. To do that, we need to install it with SUID bits and root

[Qemu-devel] [PATCH] linux-user: allow to use sudo in guest

2012-12-20 Thread Laurent Vivier
When qemu-linux-user is used in a linux container or chroot, if it needs to load binaries with SUID/SGID bits, it needs to have root rights to be able to change UID/GID. To do that, we need to install it with SUID bits and root owner. Then, if the SUID bit is not set on the binary to load, qemu

[Qemu-devel] [PATCH] linux-user: allow to use sudo in guest qemu must have suid/gid bit and root owner/group

2012-12-08 Thread Laurent Vivier
Signed-off-by: Laurent Vivier laur...@vivier.eu --- linux-user/linuxload.c | 12 +++- linux-user/main.c |3 +++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c index 381ab89..0fccf58 100644 ---