fs_node_getsecurity

Function fs_node_getsecurity 

Source
pub fn fs_node_getsecurity<L>(
    locked: &mut Locked<L>,
    current_task: &CurrentTask,
    fs_node: &FsNode,
    name: &FsStr,
    max_size: usize,
) -> Result<ValueOrSize<FsString>, Errno>
Expand description

Returns the value of the specified “security.*” attribute for fs_node. If SELinux is enabled then requests for the “security.selinux” attribute will return the Security Context corresponding to the SID with which fs_node has been labeled, even if the node’s file system does not generally support extended attributes. If SELinux is not enabled, or the node is not labeled with a SID, then the call is delegated to the crate::vfs::FsNodeOps, so the returned value may not be a valid Security Context. Corresponds to the inode_getsecurity() LSM hook.