[PATCH 1/3] vfs: add inode iteration method super_iter_inodes

Huang Shijie huangsj at hygon.cn
Fri Oct 16 02:45:42 UTC 2026


在 Thu, Oct 15, 2026 at 11:23:07AM -0400,Stephen Smalley 写道:
> 
> Perhaps SELinux could also use this to replace its own inode walking
> logic at the tail of security/selinux/hooks.c:sb_finish_set_opts()?
The super_iter_inodes() can not be used by sb_finish_set_opts() now.

super_iter_inodes is only used to iterate the inodes in sb->s_inodes list
which is proteced by sb->s_inode_list_lock.

Thanks
Huang Shijie




More information about the Linux-security-module-archive mailing list