1. 19 May, 2014 3 commits
    • cgfs: don't mount /sys/fs/cgroup readonly · 258eb399
      Christian Seiler authored
      Ubuntu containers have had trouble with automatic cgroup mounting that
      was not read-write (i.e. lxc.mount.auto = cgroup{,-full}:{ro,mixed}) in
      containers without CAP_SYS_ADMIN. Ubuntu's mountall program reads
      /lib/init/fstab, which contains an entry for /sys/fs/cgroup. Since
      there is no ro option specified for that filesystem, mountall will try
      to remount it readwrite if it is already mounted. Without
      CAP_SYS_ADMIN, that fails and mountall will interrupt boot and wait for
      user input on whether to proceed anyway or to manually fix it,
      effectively hanging container bootup.
      
      This patch makes sure that /sys/fs/cgroup is always a readwrite tmpfs,
      but that the actual cgroup hierarchy paths (/sys/fs/cgroup/$subsystem)
      are readonly if :ro or :mixed is used. This still has the desired
      effect within the container (no cgroup escalation possible and programs
      get errors if they try to do so anyway), while keeping Ubuntu
      containers happy.
      Signed-off-by: 's avatarChristian Seiler <christian@iwakd.de>
      Cc: Serge Hallyn <serge.hallyn@ubuntu.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
    • python-lxc: minor fixes to __init__.py · 9dac0c29
      Stéphane Graber authored
      Set a base class for the network object and set the encoding in the
      header. Neither of those changes are required for python3 but they do
      make it easier for anyone trying to make a python2 binding.
      Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
    • Add missing MAX_STACKDEPTH define on MUTEX_DEBUGGING build · 7bd05ece
      Serge Hallyn authored
      Corrected a small oversight when locking related code was moved from
      src/lxc/utils.c to src/lxc/lxclock.c.
      Signed-off-by: 's avatarStephen M Bennett <stephen_m_bennett@hotmail.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
  2. 05 May, 2014 1 commit
  3. 02 May, 2014 5 commits
  4. 01 May, 2014 3 commits
  5. 30 Apr, 2014 13 commits
  6. 11 Apr, 2014 2 commits
  7. 08 Apr, 2014 5 commits
  8. 07 Apr, 2014 5 commits
  9. 04 Apr, 2014 3 commits