Status of innbind and Solaris
rra at stanford.edu
Wed May 19 19:36:07 UTC 2004
Heath Kehoe <hakehoe at avalon.net> writes:
> I created some simple source files that demonstrate file descriptor
> passing on streams-based systems:
> This tar contains three source files:
> simpletest.c -- Tests if fd passing works at all. Suitable (I think)
> for use as a configure test.
> binder.c -- creates a socket and binds to port 999, then sends the
> socket to its stdout. Compile to "binder" and make it setuid root.
> user.c -- invokes ./binder and receives the socket it creates, then
> tries to listen and accept it. Run it as non-root.
Cool, thanks, I'll grab this and take a look. This may be a much better
solution, since I think file descriptor passing is fairly portable (Apache
uses it, for instance). I hadn't even thought of that.
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers