[lxc-devel] [lxc/lxc] 9daf6f: cgmanager: implement setting of cgroup limits

GitHub noreply at github.com
Mon Jan 20 20:14:52 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 9daf6f5d01d49e656190f9b94467605d5fee6f98
      https://github.com/lxc/lxc/commit/9daf6f5d01d49e656190f9b94467605d5fee6f98
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-01-20 (Mon, 20 Jan 2014)

  Changed paths:
    M src/lxc/cgmanager.c
    M src/lxc/cgroup.c
    M src/lxc/cgroup.h
    M src/lxc/start.c

  Log Message:
  -----------
  cgmanager: implement setting of cgroup limits

Also replace a wrong free of nih-allocated variable with nih_free.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: c868b261b2e08f29c5e6c5ede2e6a2c3e335ee4d
      https://github.com/lxc/lxc/commit/c868b261b2e08f29c5e6c5ede2e6a2c3e335ee4d
  Author: S.Çağlar Onur <caglar at 10ur.org>
  Date:   2014-01-20 (Mon, 20 Jan 2014)

  Changed paths:
    M src/lxc/lxc-ls
    M src/lxc/lxc_attach.c
    M src/lxc/lxc_info.c
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  handle unprivileged user calls more gracefully (v3)

Return an error if the function is not supposed to be called by an unprivileged user.
Otherwise those calls fail in the middle of their execution with different reasons.

changes since v2:
- am_unpriv is now a simple geteuid check,
- API functions are now providing error messages,
- lxc-info, lxc-attach are now checking geteuidi,
- lxc-ls is now calling get_ips only if the container is running

Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/755d8d03b148...c868b261b2e0


More information about the lxc-devel mailing list