check_fs_node_rename_access

Function check_fs_node_rename_access 

Source
pub fn check_fs_node_rename_access(
    current_task: &CurrentTask,
    old_parent: &FsNode,
    moving_node: &FsNode,
    new_parent: &FsNode,
    replaced_node: Option<&FsNode>,
    old_basename: &FsStr,
    new_basename: &FsStr,
) -> Result<(), Errno>
Expand description

Checks whether the current_task can rename the file or directory moving_node. If the rename replaces an existing node, replaced_node must contain a reference to the existing node. Corresponds to the inode_rename() LSM hook.