task_to_fs_node

Function task_to_fs_node 

Source
pub fn task_to_fs_node(
    current_task: &CurrentTask,
    task: &TempRef<'_, Task>,
    fs_node: &FsNode,
)
Expand description

Labels an crate::vfs::FsNode, by attaching a pseudo-label to the fs_node, which allows indirect resolution of the effective label. Makes the security attributes of fs_node track the task’s security attributes, even if the task’s security attributes change. Called for the /proc/ FsNodes when they are created. Corresponds to the task_to_inode LSM hook.