Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e6d0bff authored by Eric Paris's avatar Eric Paris Committed by James Morris
Browse files

SELinux: flush the avc before disabling SELinux



Before SELinux is disabled at boot it can create AVC entries.  This patch
will flush those entries before disabling SELinux.

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 008574b1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -868,6 +868,8 @@ u32 avc_policy_seqno(void)

void avc_disable(void)
{
	avc_flush();
	synchronize_rcu();
	if (avc_node_cachep)
		kmem_cache_destroy(avc_node_cachep);
}