Re: [PATCH v6 1/8] lsm: Add granular mount hooks

[email protected]
Newsgroups org.kernel.vger.selinux
Message-ID <[email protected]>
> Add the new granular mount hook declarations and implementations
> to the LSM framework:
> 
>   mount_bind        - bind mount (pre-resolved source path)
>   mount_new         - new filesystem mount (with fs_context)
>   mount_remount     - filesystem remount (with fs_context)
>   mount_reconfigure - mount flag reconfiguration (MS_REMOUNT|MS_BIND)
>   mount_move        - move mount (pre-resolved source, target and top
>                       paths; target == top unless MOVE_MOUNT_BENEATH)
>   mount_change_type - propagation type changes
> 
> These hooks are added alongside the existing security_sb_mount() and
> security_move_mount() hooks, which remain in place until all LSMs
> are converted.
> 
> Code generated with the assistance of Claude, reviewed by human.
> 
> Reviewed-by: Stephen Smalley <[email protected]>
> Tested-by: Stephen Smalley <[email protected]> # for selinux only
> Signed-off-by: Song Liu <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.