# Re: \[PATCH v5 7/8\] vfs: Replace security\_sb\_mount/security\_move\_mount with granular hooks

- From: Song Liu \<song@kernel.org\>
- Date: 2026-06-03 15:43:00 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2026/06/17084577
- Thread: https://ratatoskr.run/linux-security-module/2026/05/17055846/t.md

```text
Hi Christian,

On Thu, May 28, 2026 at 11:26 AM Song Liu [ref] wrote:
>
> Replace the monolithic security_sb_mount() call in path_mount() and
> security_move_mount() in vfs_move_mount() with the new granular mount
> hooks:
>
> - do_loopback(): call security_mount_bind()
> - do_new_mount(): call security_mount_new()
> - do_remount(): call security_mount_remount()
> - do_reconfigure_mnt(): call security_mount_reconfigure()
> - do_move_mount_old(): call security_mount_move()
> - do_change_type(): call security_mount_change_type()
> - vfs_move_mount(): replace security_move_mount() with
>   security_mount_move()

Does this version look good to you?

Thanks,
Song
```
