/dev/lxc permissions issue with updated 0.5.1+bzr563-0juju2~precise1

Serge E. Hallyn serge at hallyn.com
Mon Aug 13 17:24:34 UTC 2012


Quoting Andreas Hasenack (andreas at canonical.com):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 10-08-2012 19:59, Serge E. Hallyn wrote:
> > This looks similar to the cause of bug 
> > (https://bugs.launchpad.net/ubuntu/+source/juju/+bug/930430) - lxc 
> > (in this case lxc-start, in 930430 lxc-create) does an mkdir,
> > passing in mode 0755, but the passed in mode is masked with a
> > tightened umask set by juju (or perhaps by you?  you might type
> > 'umask' in your shell to make sure).
> 
> My umask is fine:
> $ umask
> 0002
> 
> The only thing that changed between those juju runs was the version of
> juju itself:
> 0.5+bzr531-0ubuntu1.2: /dev/lxc is 0755 root:root
> 0.5.1+bzr563-0juju2~precise1: /dev/lxc is 0700 root:root
> 
> > Perhaps lxc should check its umask and spit out a warning...  I'd
> > be open to that.  Usually you want to say let the caller decide
> > these things, but in this case it always just breaks the guests.
> 
> That's open to discussion I guess, it depends if a 0700 /dev/lxc makes

It's not just /dev/lxc/.  Also everything else created by lxc - cgroups,
/var/lib/lxc/ directories, etc.

> sense or not, but at first I would like to understand what changed in
> juju (presumably) that made this break all of a sudden.
> 
> 
> - -- 
> Andreas Hasenack
> andreas at canonical.com
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAlApAgAACgkQeEJZs/PdwpC37wCgmO8Xnxl5a6hMz5mrOivvd5iN
> hd8AoIUFw8zrRJuszTTNW5MLLNTR95rT
> =XR3G
> -----END PGP SIGNATURE-----



More information about the Juju mailing list