1. 23 Oct, 2018 6 commits
    • Kirill Smelkov's avatar
      Setup /dev/pts instance · 1c4ae85d
      Kirill Smelkov authored
      Without it e.g. screen does not work (it just was terminating after
      right start).
      1c4ae85d
    • Kirill Smelkov's avatar
      Allow to only unshare (slapns -U) without creating separate chroot · aa33cee3
      Kirill Smelkov authored
      It is handy to reuse slapns uid setup, because e.g. `unshare -U...` does
      not allow to use newuidmap & friends, and so with just unshare it is
      hard to create a user namespace where e.g. screen will work (openpty
      wants to chown(:tty), gid(tty)=5)
      aa33cee3
    • Kirill Smelkov's avatar
      Setup /run · a150da84
      Kirill Smelkov authored
      Else screen complains:
      
      	Cannot make directory '/run/screen': No such file or directory
      a150da84
    • Kirill Smelkov's avatar
      Setup stub /etc · dbe4f01e
      Kirill Smelkov authored
      Else screen complains:
      
      (neo) (z-dev) (g.env) I have no name!@deco:/# screen
      getpwuid() can't identify your account!
      dbe4f01e
    • Kirill Smelkov's avatar
      net: Make sure at least loopback works · 7ef9c285
      Kirill Smelkov authored
      Before this change even ping 127.0.0.1 was failing:
      
      	root@deco:~# ping 127.0.0.1
      	connect: Network is unreachable
      7ef9c285
    • Kirill Smelkov's avatar
      idmap: Don't skip 1-99 hole in IDs · 4a1010f2
      Kirill Smelkov authored
      Instead remap user IDs that we have to continous [0, ...] IDs in the target namespace.
      
      We need to be able to use e.g. tty group from inside (gid=5), because
      glibc.openpty wants to chwon files in /dev/pts to that group.
      
      See next patch for /dev/pts setup.
      4a1010f2
  2. 04 Oct, 2018 1 commit
  3. 03 Oct, 2018 1 commit