[lxc-devel] [PATCHv2 00/12] Assorted fixes against lxc 0.8.0-rc1

David Ward david.ward at ll.mit.edu
Sun Mar 11 17:00:42 UTC 2012


v2: Add changes to scripts (including new '--active' flag for lxc-ls)

The following patches address a number of different issues I discovered
while building or using lxc, including compatibility with systemd. They
were tested on top of lxc 0.8.0-rc1 under Fedora 16. Please let me know
if you have any questions or concerns.

David Ward (12):
  use syscall numbers from Linux kernel headers
  lxc-attach: use execvp instead of execve
  utmp: do not set conf->need_utmp_watch if CAP_SYS_BOOT is not found
  utmp: support non-rootfs configuration
  cgroup: rearrange code blocks
  lxc-attach: unify code for attaching a pid to a cgroup
  cgroup: only touch hierarchies that are bound to subsystems
  refresh lxc-ls
  refresh lxc-netstat
  rewrite lxc-ps
  make help consistent for other scripts
  lxc-setcap/lxc-setuid: add autoconf expansion for $libexecdir

 config/linux.m4            |   76 -----------
 configure.ac               |    9 +-
 doc/lxc-ls.sgml.in         |   17 ++-
 src/lxc/Makefile.am        |   11 --
 src/lxc/attach.c           |  113 +---------------
 src/lxc/attach.h           |    9 --
 src/lxc/cgroup.c           |  183 ++++++++++++++++----------
 src/lxc/cgroup.h           |    2 +-
 src/lxc/lxc-checkconfig.in |   15 +-
 src/lxc/lxc-clone.in       |   70 +++++-----
 src/lxc/lxc-create.in      |   96 +++++++-------
 src/lxc/lxc-destroy.in     |   40 ++++--
 src/lxc/lxc-ls.in          |  112 ++++++++++++----
 src/lxc/lxc-netstat.in     |  141 +++++++++++++-------
 src/lxc/lxc-ps.in          |  311 +++++++++++++++----------------------------
 src/lxc/lxc-setcap.in      |   37 ++++--
 src/lxc/lxc-setuid.in      |   36 ++++--
 src/lxc/lxc_attach.c       |   10 +-
 src/lxc/start.c            |    1 -
 src/lxc/utmp.c             |    4 -
 20 files changed, 588 insertions(+), 705 deletions(-)
 delete mode 100644 config/linux.m4
 mode change 100755 => 100644 src/lxc/lxc-checkconfig.in
 mode change 100755 => 100644 src/lxc/lxc-ps.in





More information about the lxc-devel mailing list