[Bug 930430] Re: lxc-ls requires root access after deploying an LXC instance
Serge Hallyn
930430 at bugs.launchpad.net
Tue Feb 14 17:32:41 UTC 2012
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.
** Changed in: lxc (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/930430
Title:
lxc-ls requires root access after deploying an LXC instance
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/juju/+bug/930430/+subscriptions
More information about the Ubuntu-server-bugs
mailing list