]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: access superblock_security_struct in LSM blob way
authorGONG, Ruiqi <gongruiqi1@huawei.com>
Tue, 25 Jan 2022 07:11:33 +0000 (15:11 +0800)
committerPaul Moore <paul@paul-moore.com>
Tue, 25 Jan 2022 23:46:04 +0000 (18:46 -0500)
commit2fc1149d15ba2451c1b41947631badcaa5efda4f
treec52388639f49b91905633522efe41b98c7b3e12d
parent6e424e6bafec35e47db4b693fe41eff065b7dbf6
selinux: access superblock_security_struct in LSM blob way

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: 73d7ffb853b5 ("selinux: fall back to SECURITY_FS_USE_GENFS if no xattr support")
Fixes: 97417fc8bc8f ("lsm,selinux: add new hook to compare new mount to an existing mount")
Signed-off-by: GONG, Ruiqi <gongruiqi1@huawei.com>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c