[lxc-devel] [lxc/lxc] 98e5ba: chown_mapped_root: fix assumption that calling uid...
GitHub
noreply at github.com
Fri Nov 29 04:57:42 UTC 2013
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 98e5ba5156d47436b9445a106f2014f71191c3df
https://github.com/lxc/lxc/commit/98e5ba5156d47436b9445a106f2014f71191c3df
Author: Serge Hallyn <serge.hallyn at ubuntu.com>
Date: 2013-11-28 (Thu, 28 Nov 2013)
Changed paths:
M src/lxc/conf.c
Log Message:
-----------
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 at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
More information about the lxc-devel
mailing list