Christoph Hellwig <hch(a)infradead.org> writes:
On Wed, Aug 20, 2014 at 09:53:49PM -0700, Eric W. Biederman wrote:
> Richard Weinberger <richard.weinberger(a)gmail.com> writes:
>
> > On Wed, Aug 6, 2014 at 2:57 AM, Eric W. Biederman <ebiederm(a)xmission.com>
wrote:
> >
> > This commit breaks libvirt-lxc.
> > libvirt does in lxcContainerMountBasicFS():
>
> The bugs fixed are security issues, so if we have to break a small
> number of userspace applications we will. Anything that we can
> reasonably do to avoid regressions will be done.
Can you explain the security issues in detail? Breaking common
userspace like libvirt-lxc with just a little bit of handwaiving is
entirely unacceptable.
The biggies ability for an unprivileged user to clear nosuid, nodev,
read-only, noexec with remount.
Apparently part of what libvirt-lxc clearing all mount flags except for
read-only on some filesystem it remounts read-only. Which if root
mounted the filesystem with nosuid, nodev, or noexec is not supportable.
So if it isn't the implicit setting of nodev on mount but not on remount
causing problems (which I have the trivial fix for) there is a strong
chance I need to break libvirt-lxc.
I am several bugs deep already where fixing one bug reveals yet another
bug. It is possible there is something else that that I have not
discovered that I am missing. I am more to happy to investigate to see
if it possible to avoid breaking libvirt-lxc.
Apologies for being a little vague being at the conference I only have
access to email about an hour a day.
Eric