1. 22 Sep, 2014 1 commit
  2. 19 Sep, 2014 14 commits
  3. 04 Sep, 2014 1 commit
    • Report container exit status to monitord · 1787abca
      Jean-Tiare LE BIGOT authored
      When managing containers, I need to take action based on container
      exit status. For instance, if it exited abnormally (status!=0), I
      sometime want to respawn it automatically. Or, when invoking
      `lxc-stop` I want to know if it terminated gracefully (ie on `SIGTERM`)
      or on `SIGKILL` after a timeout.
      
      This patch adds a new message type `lxc_msg_exit_code,` to preserve
      ABI. It sends the raw status code as returned by `waitpid` so that
      listening application may want to apply `WEXITSTATUS` before. This is
      what `lxc-monitor` does.
      Signed-off-by: 's avatarJean-Tiare LE BIGOT <jean-tiare.le-bigot@ovh.net>
  4. 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>
  5. 27 Aug, 2014 1 commit
  6. 26 Aug, 2014 4 commits
  7. 25 Aug, 2014 7 commits
  8. 22 Aug, 2014 11 commits