Skip to main content

fs_node_copy_up

Function fs_node_copy_up 

Source
pub fn fs_node_copy_up(
    current_task: &CurrentTask,
    fs_node: &FsNode,
    fs: &FileSystem,
    new_creds: &mut Credentials,
)
Expand description

Updates the supplied new_creds with the necessary FS and LSM credentials to correctly label a new FsNode on copy-up, to match the existing fs_node.

  • fs_node: The “lower” filesystem node that is to be copied-up.
  • fs: The OverlayFS instance performing the copy-up operation.

Corresponds to the security_inode_copy_up() LSM hook.