Mono Class Library: Mono.Unix Namespace

Mono.Unix.PeerCred Class

When using Unix domain sockets (via Mono.Unix.UnixEndPoint or Mono.Unix.UnixClient, 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. [Edit]

See Also: PeerCred Members

public class PeerCred

Remarks

Not all operating systems support this and the values of PeerCred.GroupID, PeerCred.ProcessID, and PeerCred.UserID may all be zero. [Edit]

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0