]> git.ipfire.org Git - thirdparty/lxc.git/commit
chown_mapped_root: fix assumption that calling uid == gid
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 29 Nov 2013 04:53:13 +0000 (22:53 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 29 Nov 2013 04:57:34 +0000 (23:57 -0500)
commit98e5ba5156d47436b9445a106f2014f71191c3df
tree59025e4a96e65326295bb3de902615d2deca0103
parente1a2f8980916869ad9a3ebc6181427a352f58476
chown_mapped_root: fix assumption that calling uid == gid

Because if they are not, then we'll fail trying to map that gid into the
container.

The function doesn't change any gids, but lxc-usernsexec always does
setgid(0), so just map getgid() to 0 in the container.

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