1. 07 Jan, 2017 2 commits
    • start: fix execute and improve setgroups() calls · d08f8d2f
      Christian Brauner authored
      lxc_execute() and lxc-execute where broken when a user tried to switch to a
      non-root uid/gid. This prevented necessary setup operations like mounting the
      rootfs which require root in the user namespace. This commit separates
      switching to root in the user namespace from switching to the requested uid/gid
      by lxc_execute().
      This should be safe: Once we switched to root in the user namespace via
      setuid() and then switch to a non-root uid/gid in the user namespace for
      lxc_execute() via setuid() we cannot regain root privileges again. So we can
      only make us safer (Unless I forget about some very intricate user namespace
      nonsense; which is not as unlikely as I try to make it sound.).
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
    • utils: add uid, gid, group convenience wrappers · dbaf55a3
      Christian Brauner authored
      This commit adds lxc_switch_uid_gid() which allows to switch the uid and gid of
      a process via setuid() and setgid() and lxc_setgroups() which allows to set
      groups via setgroups(). The main advantage is that they nicely log the switches
      they perform.
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
  2. 04 Jan, 2017 6 commits
  3. 03 Jan, 2017 2 commits
  4. 29 Dec, 2016 1 commit
  5. 28 Dec, 2016 1 commit
  6. 19 Dec, 2016 1 commit
  7. 18 Dec, 2016 1 commit
    • Add --enable-gnutls option · c8601571
      Fabrice Fontaine authored
      Previously HAVE_LIBGNUTLS was never set in config.h even if gnutls was
      detected as AC_CHECK_LIB default action-if-found was overriden by
      enable_gnutls=yes
      This patch adds an --enable-gnutls option and will call AC_CHECK_LIB
      with the default action to write HAVE_LIBGNUTLS in config.h
      Signed-off-by: 's avatarFabrice Fontaine <fabrice.fontaine@orange.com>
  8. 16 Dec, 2016 1 commit
  9. 15 Dec, 2016 5 commits
  10. 13 Dec, 2016 1 commit
    • confile: support the network link string pattern matching · 576400e5
      fli authored
      Enable lxc network config support the following type and link:
      
      lxc.network.type = phys
      lxc.network.link = eth+
      
      Here, the suffix '+' will trigger a string pattern matching
      and when lxc find any network interfaces name prefixed with
      "eth" such as "eth0", "eth1", "ethxxxx" and so on, it will
      try to move them into the container's namespace; If it didn't
      find any matching, it would do nothing for this configure
      line.
      Signed-off-by: 's avatarfli <fupan.li@windriver.com>
  11. 12 Dec, 2016 8 commits
  12. 10 Dec, 2016 2 commits
  13. 09 Dec, 2016 1 commit
  14. 08 Dec, 2016 3 commits
  15. 06 Dec, 2016 3 commits
  16. 05 Dec, 2016 1 commit
  17. 03 Dec, 2016 1 commit