SELinux: no BUG_ON(!ss_initialized) in selinux_clone_mnt_opts
commitbbb3f67ee46679d6b18373b029723aae199ab7e8
authorEric Paris <eparis@redhat.com>
Mon, 21 Apr 2008 20:24:11 +0000 (21 16:24 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 May 2008 21:44:35 +0000 (1 14:44 -0700)
tree651e4431b9034963cad4ad9879e702b85a23ea22
parent050aa73d317bb6f8182c1ee8d4850c3aee873d7a
SELinux: no BUG_ON(!ss_initialized) in selinux_clone_mnt_opts

commit 0f5e64200f20fc8f5b759c4010082f577ab0af3f upstream

The Fedora installer actually makes multiple NFS mounts before it loads
selinux policy.  The code in selinux_clone_mnt_opts() assumed that the
init process would always be loading policy before NFS was up and
running.  It might be possible to hit this in a diskless environment as
well, I'm not sure.  There is no need to BUG_ON() in this situation
since we can safely continue given the circumstances.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
security/selinux/hooks.c