1. 01 Dec, 2014 1 commit
    • audit: added capacity and reserve() to nlmsg · 55ae7edb
      Shuai Zhang authored
      There are now two (permitted) ways to add data to netlink message:
      
      1. put_xxx()
      2. call nlmsg_reserve() to get a pointer to newly reserved room within the
         original netlink message, then write or memcpy data to that area.
      
      Both of them guarantee adding requested length data do not overflow the
      pre-allocated message buffer by checking against its cap field first.
      
      And there may be no need to access nlmsg_len outside nl module, because both
      put_xxx() and nlmsg_reserve() have alread did that for us.
      Signed-off-by: 's avatarShuai Zhang <zs.broccoli@gmail.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
  2. 27 Nov, 2014 4 commits
  3. 26 Nov, 2014 3 commits
  4. 25 Nov, 2014 5 commits
  5. 24 Nov, 2014 10 commits
  6. 20 Nov, 2014 1 commit
  7. 19 Nov, 2014 1 commit
    • lxc/utils: bugfix freed pointer return value · a1c9a9c9
      Silvio Fricke authored
      We allocate a pointer and save this address in a static variable. After
      this we freed this pointer and return.
      
      Here a cuttout of a valgrind report:
      
      	[...]
      	==11568== Invalid read of size 1
      	==11568==    at 0x4C2D524: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      	==11568==    by 0x5961C9B: puts (in /usr/lib/libc-2.20.so)
      	==11568==    by 0x400890: main (lxc_config.c:73)
      	==11568==  Address 0x6933e21 is 1 bytes inside a block of size 32 free'd
      	==11568==    at 0x4C2B200: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      	==11568==    by 0x4E654F2: lxc_global_config_value (utils.c:415)
      	==11568==    by 0x4E92177: lxc_get_global_config_item (lxccontainer.c:2287)
      	==11568==    by 0x400883: main (lxc_config.c:71)
      	[...]
      Signed-off-by: 's avatarSilvio Fricke <silvio.fricke@gmail.com>
  8. 18 Nov, 2014 1 commit
  9. 17 Nov, 2014 1 commit
  10. 12 Nov, 2014 1 commit
  11. 08 Nov, 2014 1 commit
  12. 07 Nov, 2014 1 commit
  13. 06 Nov, 2014 1 commit
    • lxc-debian: Fix default mirrors · 5d20559c
      Gu1 authored
      Fix a typo in the lines inserted in the default sources.list.
      Change the default mirror to http.debian.net which is (supposedly) more
      accurate and better than cdn.debian.net for a generic configuration.
      Use security.debian.org directly for the {release}/updates repository.
      Signed-off-by: 's avatarGu1 <gu1@aeroxteam.fr>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
  14. 05 Nov, 2014 1 commit
  15. 02 Nov, 2014 1 commit
  16. 31 Oct, 2014 1 commit
  17. 29 Oct, 2014 1 commit
  18. 27 Oct, 2014 5 commits