[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lxc-devel
Subject:    [lxc-devel] [lxc/lxc] 98e5ba: chown_mapped_root: fix assumption that calling uid...
From:       noreply () github ! com (GitHub)
Date:       2013-11-29 4:57:42
Message-ID: 52981ec63ee0d_652fe03d50805c4 () hookshot-fe1-pe1-prd ! aws ! github ! net ! mail
[Download RAW message or body]

  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>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic