Skip to main content

bind_control_socket

Function bind_control_socket 

Source
pub fn bind_control_socket(
    path: &Path,
) -> Result<(UnixListener, ControlSocketGuard)>
Expand description

Bind with a private temporary pathname, chmod it before publication, and hard-link it into place. No client can reach the socket while its mode is broader than 0600.