]> git.ipfire.org Git - thirdparty/lxc.git/commit
chmod container dir to 0770 (v2)
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 21 Aug 2014 16:02:18 +0000 (16:02 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 22 Aug 2014 18:58:25 +0000 (13:58 -0500)
commitd5752559f8d6971dfd189fcc5ff17f0bef99498c
tree3f9b237135ed30fa68749c74b60a564550422039
parentd08779d49d36db9e2dd8ab33a4af9db281a001b5
chmod container dir to 0770 (v2)

This prevents u2 from going into /home/u1/.local/share/lxc/u1/rootfs
and running setuid-root applications to get write access to u1's
container rootfs.

v2: set umask to 002 for the mkdir.  Otherwise if umask happens to be,
say, 022, then user does not have write permissions under the container
dir and creation of $containerdir/partial file will fail.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c