NetBSD/lib/librumphijack
pooka b4ff8b5f63 In case dup2(n, n+FDOFF) is done, the caller thinks there are two
distinct file descriptors, but the rump kernel thinks they are both
the same.  Now, if either one is closed by the application, "both"
will be closed in the rump kernel.  To fix this, maintain an
alias-mask.  It's not a perfect solution, though (consider e.g.
F_SETFL).  Maybe we should actually dup the fd and maintain a
mapping table?

Also, prevent the host from opening file descriptors onto the places
in the fd namespace that have been dupped.

These together fix "cat < /rump/foo" in a hijacked /bin/sh.
(the first one makes sure stdin is open in cat and the second one
makes sure it doesn't try to cat something from /usr/share/locale
instead of stdin)
2011-02-17 15:20:10 +00:00
..
hijack.c In case dup2(n, n+FDOFF) is done, the caller thinks there are two 2011-02-17 15:20:10 +00:00
Makefile Use NEEDED for librumpclient instead of loading it manually. 2011-01-27 18:12:19 +00:00
rumphijack.3 document RUMPHIJACK_RETRYCONNECT 2011-02-16 19:46:42 +00:00
shlib_version