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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: libvir-list-bounces@xxxxxxxxxx [mailto:libvir-list-bounces@xxxxxxxxxx]
> On Behalf Of Richard Weinberger
> Sent: Tuesday, July 29, 2014 4:59 AM
> To: libvir-list@xxxxxxxxxx
> Cc: Richard Weinberger; david@xxxxxxxxxxxxx
> Subject:  [PATCH] LXC: Fix virLXCControllerSetupDevPTS() wrt user
> namespaces
> 
> 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 to capable_wrt_inode_uidgid")
> uncovered that issue.
> 
> Signed-off-by: Richard Weinberger <richard@xxxxxx>

Reviewed-by: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]