pub fn start_credentials_socket() -> Result<BackgroundProcess, Error>
Expand description
Starts a socket for io.systemd.Credentials
using systemd-socket-activate
.
Sets the file mode of the socket to 666
so that all users on the system have access.
ยงErrors
Returns an error if
systemd-socket-activate
is unable to start the required socket,- one or more files in
/run/systemd
can not be listed, - applying of permissions on
/run/systemd/io.systemd.Credentials
fails, - or the socket has not been made available within 10000ms.