1. 22 Dec, 2017 2 commits
    • start: simplify cgroup namespace preservation · 8bf3abfb
      Christian Brauner authored
      Since we are now dumpable we can open /proc/<child-pid>/ns/cgroup so let's
      avoid the overhead of sending around fds.
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
    • start: make us dumpable · 4b826b1f
      Christian Brauner authored
      When set set{u,g}id() the kernel will make us undumpable. This is unnecessary
      since we can guarantee that whatever is running inside the child process at
      this point this is fully trusted by the parent. Making us dumpable let's users
      use debuggers on the child process before the exec as well and also allows us
      to open /proc/<child-pid> files in lieu of the child.
      Note, that we only need to perform the prctl(PR_SET_DUMPABLE, ...) if our
      effective uid on the host is not 0. If our effective uid on the host is 0 then
      we will keep all capabilities in the child user namespace across set{g,u}id().
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
  2. 21 Dec, 2017 11 commits
  3. 20 Dec, 2017 5 commits
  4. 19 Dec, 2017 17 commits
  5. 18 Dec, 2017 4 commits
  6. 15 Dec, 2017 1 commit