Function miral::socket_fd_of

Function Documentation

auto miral::socket_fd_of(Application const &application) -> int

Returns the file descriptor of the client’s socket connection, or -1 if there is no client socket.

May be used for authentication with apparmor. X11 apps always return -1, since they do not connect directly to the Mir process.

Parameters:

application – The application

Returns:

The file descriptor of the client’s socket connection, or -1 if there is no client socket.