Mono.Posix
1.0.5000.0
2.0.0.0
4.0.0.0
System.Object
When using Unix domain sockets (via or , for example) most operating systems support the passing of credentials through the socket. Generally, the process id (PID) of the application on the other side of the connection as well as the group ID (GID) and user ID (UID) of the executing user are available. This is done via the kernel and cannot be spoofed, so this can be used to reliably authenticate a Unix socket connection.
Not all operating systems support this and the values of , , and may all be zero.
Constructor
1.0.5000.0
2.0.0.0
4.0.0.0
A , but this must be a Unix domain socket.
Reads the peer credentials from a Unix domain socket.
If the passed in is not a Unix domain socket, is thrown.
Property
1.0.5000.0
2.0.0.0
4.0.0.0
System.Int32
The Unix group ID
The Unix group ID of the connection's peer.
Property
1.0.5000.0
2.0.0.0
4.0.0.0
System.Int32
The process ID
The process ID of the connection's peer.
Property
1.0.5000.0
2.0.0.0
4.0.0.0
System.Int32
The Unix user ID
The Unix user ID of the connection's peer.