Skip to main content

Module local_socket

Module local_socket 

Source
Expand description

Connecting to a service socket that only this user can have created.

A session service publishes its socket below a directory private to the user (the runtime directory, 0700), and a client checks that every directory from that root down to the socket, and the socket itself, belongs to it, so another user cannot have planted it. The connect has a deadline.

Structs§

ServiceSocket
A stream to a session service, connected by connect_owner_only. An app holds one of these rather than the OS stream, so nothing it writes names a platform socket type.

Functions§

connect_owner_only
Connect to socket, which lies below root, once every directory from root down to socket, and the socket itself, are owned by this process’s user and closed to group and others.