NetBSD/lib/librumpuser
pooka 2ba7fe5525 A bunch of changes which essentially make sshd work with a hijacked
rump tcp/ip stack:

* sshd likes to fork and then re-exec itself
  ==> trap execve() and augment the env with the current parameters
      essential to a rump kernel (kernel communication fd, information
      about dup2'd file descriptors)

* sshd likes to play lots of games with pipes, socketpairs and dup{,2}()
  ==> make sure we do not close essential rump client descriptors:
      dup() them to a safe place, except for F_CLOSEM where we
      simply leave them alone.  also, partially solved by the above,
      make sure the process's set of rump kernel descriptors persists
      over exec()

* sshd likes to chdir() before exec
  ==> for unix-style rump_sp(7) sockets save the full path on the
      initial exec and use it afterwards.  thread the path through
      the environment in execve()
2011-02-14 14:56:23 +00:00
..
Makefile Require server to be explicitly initialized with rump_init_server(url). 2010-11-30 14:23:24 +00:00
rumpuser_daemonize.c shush lint 2011-01-22 14:18:55 +00:00
rumpuser_dl.c Allow rump kernel to call dlsym(RTLD_DEFAULT). 2010-12-30 15:47:30 +00:00
rumpuser_int.h Make int *error and optional parameter (i.e. it can be NULL). 2010-11-15 15:23:32 +00:00
rumpuser_net.c Make int *error and optional parameter (i.e. it can be NULL). 2010-11-15 15:23:32 +00:00
rumpuser_pth_dummy.c librumpuser is not _KERNEL code and does not belong in sys. Move 2010-02-26 18:54:20 +00:00
rumpuser_pth.c fix indent. no functional changes. 2011-02-05 13:51:56 +00:00
rumpuser_sp.c Turn the "idle workers available" from a flag into a counter so 2011-02-08 11:21:22 +00:00
rumpuser.3 Join today's manpage mania by updating this to reflect the current 2010-03-01 17:20:44 +00:00
rumpuser.c Support query of the partition size in case underlying device is 2011-02-06 21:05:53 +00:00
shlib_version librumpuser is not _KERNEL code and does not belong in sys. Move 2010-02-26 18:54:20 +00:00
sp_common.c A bunch of changes which essentially make sshd work with a hijacked 2011-02-14 14:56:23 +00:00