Comment 5 for bug 930430

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

This is odd, I seem to have lost a bunch of comments - meaning I must have added them to the wrong bug!

The gist is, this is not a bug in lxc in my opinion. Lxc creates the /sys/fs/cgroup/xyz/lxc directories using mkdir(2) passing 0755 as the mode. That mode is masked with the task's umask. juju is running lxc-start with a umask of 0077, rather than the usual 0022. That is the reason the directory gets the wrong permissions.

Lxc could go in and chmod the directories by hand, but that would be wrong. The umask presumably is set as it is for a reason.

In my opinion, juju should change its umask to 0022 before calling lxc-create.