socket_getpeersec_dgram

Function socket_getpeersec_dgram 

Source
pub fn socket_getpeersec_dgram(
    current_task: &CurrentTask,
    socket: &Socket,
) -> Vec<u8> 
Expand description

Returns the Security Context with which the [crate::vfs::Socket]’s is labeled, to return to the recipient via SCM_SECURITY auxiliary data, if SO_PASSSEC is set. Corresponds to the socket_getpeersec_dgram() LSM hook.