pub fn fs_node_setsecurity<L>(
locked: &mut Locked<L>,
current_task: &CurrentTask,
fs_node: &FsNode,
name: &FsStr,
value: &FsStr,
op: XattrOp,
) -> Result<(), Errno>where
L: LockEqualOrBefore<FileOpsCore>,Expand description
Called when an extended attribute with “security.”-prefixed name is being set, after having
passed the discretionary and check_fs_node_setxattr_access() permission-checks.
This allows the LSM (e.g. SELinux) to update internal state as necessary for xattr changes.
Partially corresponds to the inode_setsecurity() and inode_post_setxattr() LSM hooks.