1. 29 Oct, 2013 3 commits
  2. 28 Oct, 2013 2 commits
  3. 25 Oct, 2013 6 commits
    • rpm spec: fix "warning: bogus date in %changelog" · 7920b1b4
      Dwight Engen authored
      Mar 24 2009 was actually a Tuesday, maybe Daniel was still recovering
      from Monday ;) Stranger still that RPM actually checks this!?
      Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
    • Use actual length of socket's name for abstract sockets (v3) · aae93dd3
      S.Çağlar Onur authored
      The addrlen parameter should be the actual length of socket's name for abstract sockets. Otherwise socket gets padded with NULLs.
      
      cat /proc/net/unix | grep lxc
      [...]
      0000000000000000: 00000003 00000000 00000000 0001 03 226548 @lxc/ad055575fe28ddd5//var/lib/lxc^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
      [...]
      
      with this patch;
      
      cat /proc/net/unix | grep lxc
      [...]
      0000000000000000: 00000002 00000000 00010000 0001 01 109563 @lxc/ad055575fe28ddd5//var/lib/lxc
      [...]
      
      Changes since v1:
          * check the length of passed-in string
      Changes since v2:
          * remove non-abstract socket code path to simplify functions
          * rename lxc_af_unix_* family to lxc_abstract_unix_*
      Signed-off-by: 's avatarS.Çağlar Onur <caglar@10ur.org>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
    • Eliminate duplicate entries from list_active_containers (v2) · 9c88ff1f
      S.Çağlar Onur authored
      list_active_containers parses /proc/net/unix which can contain multiple entries for the same container;
      
      0000000000000000: 00000002 00000000 00010000 0001 01 273672 @/var/lib/lxc/6/command
      0000000000000000: 00000002 00000000 00010000 0001 01 274395 @/var/lib/lxc/5/command
      0000000000000000: 00000002 00000000 00010000 0001 01 273890 @/var/lib/lxc/4/command
      0000000000000000: 00000002 00000000 00010000 0001 01 273141 @/var/lib/lxc/3/command
      0000000000000000: 00000002 00000000 00010000 0001 01 273915 @/var/lib/lxc/2/command
      0000000000000000: 00000002 00000000 00010000 0001 01 273683 @/var/lib/lxc/1/command
      0000000000000000: 00000002 00000000 00010000 0001 01 273074 @/var/lib/lxc/0/command
      0000000000000000: 00000002 00000000 00010000 0001 01 273931 @/var/lib/lxc/9/command
      0000000000000000: 00000002 00000000 00010000 0001 01 273110 @/var/lib/lxc/8/command
      0000000000000000: 00000002 00000000 00010000 0001 01 273390 @/var/lib/lxc/7/command
      0000000000000000: 00000003 00000000 00000000 0001 03 275903 @/var/lib/lxc/8/command
      0000000000000000: 00000003 00000000 00000000 0001 03 276043 @/var/lib/lxc/1/command
      0000000000000000: 00000003 00000000 00000000 0001 03 273301 @/var/lib/lxc/0/command
      0000000000000000: 00000003 00000000 00000000 0001 03 275650 @/var/lib/lxc/4/command
      
      On this system list_active_containers returns 14 containers while only 10 containers are running.
      
      Following patch;
      
      	* Introduces array_contains function to do a binary search on given array,
      	* Starts to sort arrays inside the add_to_clist and add_to_names functions,
      	* Consumes array_contains in list_active_containers to eliminate duplicates,
      	* Replaces the linear search code in lxcapi_get_interfaces with the new function.
      
      Changes since v1:
      	* Do not load containers if a if a container list is not passed in
      	* Fix possible memory leaks in lxcapi_get_ips and lxcapi_get_interfaces if realloc fails
      Signed-off-by: 's avatarS.Çağlar Onur <caglar@10ur.org>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
    • lxc-alpine: enable 4 consoles by default · 44f820e3
      Natanael Copa authored
      We allow 4 consoles in the LXC config file so we can enable 4 in the
      inittab as well.
      Signed-off-by: 's avatarNatanael Copa <ncopa@alpinelinux.org>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
    • lxc-alpine: run bootmisc and syslog at boot runlevel · 2899ab0b
      Natanael Copa authored
      The bootmisc script is needed to clean up various temp dirs like /tmp
      and migrate /var/run to /run if needed.
      
      The syslog service is started in 'boot' runlevel when running on real
      hardware so we do the same for containers.
      Signed-off-by: 's avatarNatanael Copa <ncopa@alpinelinux.org>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
    • cgroup: set memory.use_hierarchy · 1ea59ad2
      Serge Hallyn authored
      But don't fail the container start if that fails.
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
  4. 24 Oct, 2013 12 commits
  5. 23 Oct, 2013 3 commits
  6. 22 Oct, 2013 7 commits
  7. 21 Oct, 2013 4 commits
  8. 20 Oct, 2013 2 commits
  9. 19 Oct, 2013 1 commit
    • Fix following compile error on ubuntu 12.10 · bc605ac6
      S.Çağlar Onur authored
      [...]
      make[3]: Entering directory `/home/caglar/Projects/lxc/src/tests'
      depbase=`echo attach.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
              gcc -DHAVE_CONFIG_H -I. -I../../src    -I../../src -DLXCROOTFSMOUNT=\"/usr/lib/x86_64-linux-gnu/lxc/rootfs\" -DLXCPATH=\"/var/lib/lxc\" -DLXC_GLOBAL_CONF=\"/etc/lxc/lxc.conf\" -DLXCINITDIR=\"/usr/libexec\" -DLXC_DEFAULT_CONFIG=\"/etc/lxc/default.conf\"   -g -O2 -Wall -Werror -MT attach.o -MD -MP -MF $depbase.Tpo -c -o attach.o attach.c &&\
              mv -f $depbase.Tpo $depbase.Po
      attach.c: In function ‘main’:
      attach.c:380:2: error: implicit declaration of function ‘test_lsm_detect’ [-Werror=implicit-function-declaration]
      cc1: all warnings being treated as errors
      make[3]: *** [attach.o] Error 1
      [...]
      Signed-off-by: 's avatarS.Çağlar Onur <caglar@10ur.org>
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>