1. 29 Aug, 2014 1 commit
    • lxc-cgm: fix issue with nested chowning · d6559c5d
      Serge Hallyn authored
      To ask cgmanager to chown files as an unpriv user, we must send the
      request from the container's namespace (with our own userid also
      mapped in).  However when we create a new namespace then we must
      open a new dbus connection, so that our credential and the credential
      on the dbus socket match.  Otherwise the proxy will refuse the request.
      
      Because we were warning about this failure but not exiting, the failure
      was not noticed until the unprivileged container went on to try to
      administer its cgroups, i.e. creating a container inside itself.
      
      Fix this by having the do_chown_cgroup create a new cgmanager connection.
      In order to reduce the number of connections, since the list of subsystems
      is global anyway, don't call do_chown_cgroup once for each controller,
      just call it once and have it run over all controllers.
      
      (This patch does not change the fact that we don't fail if the
      chown failed.  I think we should change that, but let's do it in a
      later patch)
      Reported-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
  2. 27 Aug, 2014 1 commit
  3. 26 Aug, 2014 4 commits
  4. 25 Aug, 2014 7 commits
  5. 22 Aug, 2014 11 commits
  6. 19 Aug, 2014 1 commit
    • Update plamo template · ea00a202
      TAMUKI Shoichi authored
      - If "installpkg" command does not exist, lxc-plamo temporarily
        install the command with static linked tar command into the lxc
        cache directory.  The tar command does not refer to passwd/group
        files, which means that only a few files/directories are extracted
        with wrong user/group ownership.  To avoid this, the installpkg
        command now uses the standard tar command in the system.
      - Change mode to 666 for $rootfs/dev/null to allow write access for
        all users.
      - Small fix in usage message.
      Signed-off-by: 's avatarTAMUKI Shoichi <tamuki@linet.gr.jp>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
      Acked-by: 's avatarKATOH Yasufumi <karma@jazz.email.ne.jp>
  7. 18 Aug, 2014 5 commits
  8. 16 Aug, 2014 10 commits