tag | 4cc6bc5993c2de81334929ad390b23a6315c3e0f | |
---|---|---|
tagger | Paul Moore <paul@paul-moore.com> | Tue Apr 02 23:05:19 2024 -0400 |
object | 37801a36b4d68892ce807264f784d818f8d0d39b |
selinux/stable-6.9 PR 20240402
commit | 37801a36b4d68892ce807264f784d818f8d0d39b | [log] [tgz] |
---|---|---|
author | Christian Göttsche <cgzones@googlemail.com> | Thu Mar 28 20:16:58 2024 +0100 |
committer | Paul Moore <paul@paul-moore.com> | Mon Apr 01 23:32:35 2024 -0400 |
tree | f30921a08fef5c3237716ba481a00d51fb2e03db | |
parent | 4cece764965020c22cff7665b18a012006359095 [diff] |
selinux: avoid dereference of garbage after mount failure In case kern_mount() fails and returns an error pointer return in the error branch instead of continuing and dereferencing the error pointer. While on it drop the never read static variable selinuxfs_mount. Cc: stable@vger.kernel.org Fixes: 0619f0f5e36f ("selinux: wrap selinuxfs state") Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>