Re: [libvirt] [PATCH] LXC: Fix virLXCControllerSetupDevPTS() wrt user namespaces

2014-08-14 Thread Ján Tomko
On 08/14/2014 02:45 PM, Richard Weinberger wrote: > Am 14.08.2014 14:35, schrieb Ján Tomko: >> On 07/28/2014 10:59 PM, Richard Weinberger wrote: >>> The gid value passed to devpts has to be translated by hand as >>> virLXCControllerSetupDevPTS() is called before setting up the user >>> and group ma

Re: [libvirt] [PATCH] LXC: Fix virLXCControllerSetupDevPTS() wrt user namespaces

2014-08-14 Thread Richard Weinberger
Am 14.08.2014 14:35, schrieb Ján Tomko: > On 07/28/2014 10:59 PM, Richard Weinberger wrote: >> The gid value passed to devpts has to be translated by hand as >> virLXCControllerSetupDevPTS() is called before setting up the user >> and group mappings. >> Otherwise devpts will use an unmapped gid and

Re: [libvirt] [PATCH] LXC: Fix virLXCControllerSetupDevPTS() wrt user namespaces

2014-08-14 Thread Ján Tomko
On 07/28/2014 10:59 PM, Richard Weinberger wrote: > The gid value passed to devpts has to be translated by hand as > virLXCControllerSetupDevPTS() is called before setting up the user > and group mappings. > Otherwise devpts will use an unmapped gid and openpty() > will fail within containers. > Li

Re: [libvirt] [PATCH] LXC: Fix virLXCControllerSetupDevPTS() wrt user namespaces

2014-08-05 Thread Richard Weinberger
ibvir-list@redhat.com >> Cc: Richard Weinberger; da...@sigma-star.at >> Subject: [libvirt] [PATCH] LXC: Fix virLXCControllerSetupDevPTS() wrt user >> namespaces >> >> The gid value passed to devpts has to be translated by hand as >> virLXCControllerSetupDevPTS() is call

Re: [libvirt] [PATCH] LXC: Fix virLXCControllerSetupDevPTS() wrt user namespaces

2014-07-28 Thread chenhanx...@cn.fujitsu.com
> -Original Message- > From: libvir-list-boun...@redhat.com [mailto:libvir-list-boun...@redhat.com] > On Behalf Of Richard Weinberger > Sent: Tuesday, July 29, 2014 4:59 AM > To: libvir-list@redhat.com > Cc: Richard Weinberger; da...@sigma-star.at > Subject: [libv

[libvirt] [PATCH] LXC: Fix virLXCControllerSetupDevPTS() wrt user namespaces

2014-07-28 Thread Richard Weinberger
The gid value passed to devpts has to be translated by hand as virLXCControllerSetupDevPTS() is called before setting up the user and group mappings. Otherwise devpts will use an unmapped gid and openpty() will fail within containers. Linux commit commit 23adbe12 ("fs,userns: Change inode_capable t