1. 01 Jul, 2021 2 commits
    • initutils: use vfork() in lxc_container_init() · 91ee6c8b
      Christian Brauner authored
      We can let the child finish calling exec before continuing in the
      parent.
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
    • execute: don't exec init, call it · a4295196
      Tycho Andersen authored
      Instead of having a statically linked init that we put on the host fs
      somewhere via packaging, have to either bind mount in or detect fexecve()
      functionality, let's just call it as a library function. This way we don't
      have to do any of that.
      
      This also fixes up a bunch of conditions from:
      
      if (quiet)
          fprintf(stderr, "log message");
      
      to
      
      if (!quiet)
          fprintf(stderr, "log message");
      
      :)
      
      and it drops all the code for fexecve() detection and bind mounting our
      init in, since we no longer need any of that.
      
      A couple other thoughts:
      
      * I left the lxc-init binary in since we ship it, so someone could be using
        it outside of the internal uses.
      * There are lots of unused arguments to lxc-init (including presumably
        --quiet, since nobody noticed the above); those may be part of the API
        though and so we don't want to drop them.
      Signed-off-by: 's avatarTycho Andersen <tycho@tycho.pizza>
  2. 29 Jun, 2021 12 commits
  3. 14 Jun, 2021 5 commits
  4. 08 Jun, 2021 3 commits
  5. 28 May, 2021 16 commits
  6. 17 May, 2021 1 commit
  7. 12 May, 2021 1 commit