|
|
1.1 ! root 1: We can port -lipc to non-v10 systems with unix domain sockets. ! 2: How it works: ! 3: client creates a socket in the unix domain, /tmp/blurfl ! 4: client opens a connection to /cs/server in the unix domain ! 5: client writes the name /tmp/blurfl to the /cs/server connection ! 6: client writes a random magic cookie to the /cs/server connection ! 7: server writes a random magic cookie back to the client ! 8: client closes the /cs/server connection ! 9: server can stat() /tmp/blurfl to find out who the client is ! 10: client listens on /tmp/blurfl for the server to call ! 11: server open /tmp/blurfl ! 12: client and server exchange random magic cookies obtained earlier ! 13: if the cookies check out we have an authenticated connection ! 14: At this point, we've approximately duplicated the v10 business of opening ! 15: a pipe with conn_ld and identifying ourselves. Since unix domain sockets ! 16: support descriptor passing, the rest should be roughly as in v10.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.