Re: [PATCH -next] selinux: access superblock_security_struct in LSM blob way

From: Paul Moore
Date: Tue Jan 25 2022 - 18:50:40 EST


On Tue, Jan 25, 2022 at 2:12 AM GONG, Ruiqi <gongruiqi1@xxxxxxxxxx> wrote:
>
> LSM blob has been involved for superblock's security struct. So fix the
> remaining direct access to sb->s_security by using the LSM blob
> mechanism.
>
> Fixes: 08abe46b2cfc ("selinux: fall back to SECURITY_FS_USE_GENFS if no xattr support")
> Fixes: 69c4a42d72eb ("lsm,selinux: add new hook to compare new mount to an existing mount")
> Signed-off-by: GONG, Ruiqi <gongruiqi1@xxxxxxxxxx>
> ---
> security/selinux/hooks.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Thanks for the patch! I just merged this into selinux/next.

--
paul-moore.com