security_context_of_peer


Description:

public virtual void security_context_of_peer (SecurityContext peer_ctx, int peer_fd, string peer_service, string peer_app_ctx)

Retrieves and sets SecurityContext of the specified peer.

The default implementation sets the app context as it was passed, and sets the system context to the binary path of the process that is determined from peer_fd and peer_service parameters.

Parameters:

this

object instance.

peer_ctx

instance of security context to be set.

peer_fd

file descriptor of the peer connection if using peer-to-peer dbus, -1 otherwise.

peer_service

get_sender of the peer connection, if not using peer-to-peer dbus, NULL otherwise

peer_app_ctx

application context of the peer connection.