]> git.ipfire.org Git - thirdparty/lxc.git/commit
RFC: lxclock: drop the chown+chmod of lockdir
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 30 Sep 2013 21:23:34 +0000 (16:23 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 30 Sep 2013 21:23:34 +0000 (16:23 -0500)
commite59536145cbcfc16e2578819d5ee547455aa56d4
treeca13de004cc6495bd810b3817ff95d9f66c6ba5f
parent243cae25b5b75bde4e720f6f3bda3cbe87951858
RFC: lxclock: drop the chown+chmod of lockdir

The original rationale for this was to make sure that if
lxcpath was /home/serge/lxcbase, then then lockdir
(/run/user/serge/lock/lxc/home/serge/lxcbase) would be
owned by the same user as /home/serge/lxcbase.

The only user who can chown to other uids (without CAP_CHOWN
added to fP) is root, who shouldn't be mucking with non-root
owned containers anyway.  In the meantime this causes a bunch
of noise for arguably no benefit.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxclock.c