Home
last modified time | relevance | path

Searched hist:"519 dad3b" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/security/selinux/
H A Dselinuxfs.c519dad3b Thu Mar 18 16:53:01 CDT 2021 Ondrej Mosnacek <omosnace@redhat.com> selinux: don't log MAC_POLICY_LOAD record on failed policy load

If sel_make_policy_nodes() fails, we should jump to 'out', not 'out1',
as the latter would incorrectly log an MAC_POLICY_LOAD audit record,
even though the policy hasn't actually been reloaded. The 'out1' jump
label now becomes unused and can be removed.

Fixes: 02a52c5c8c3b ("selinux: move policy commit after updating selinuxfs")
Cc: stable@vger.kernel.org
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>