]> git.baikalelectronics.ru Git - kernel.git/commit
SELinux: no BUG_ON(!ss_initialized) in selinux_clone_mnt_opts
authorEric Paris <eparis@redhat.com>
Mon, 21 Apr 2008 20:24:11 +0000 (16:24 -0400)
committerJames Morris <jmorris@namei.org>
Tue, 22 Apr 2008 00:00:09 +0000 (10:00 +1000)
commitb0c3a61597acc03c8c6ae1caed13bde3a91e94bb
treee59565d010a5538910a89f0c44122e802ba011a3
parent85e3317a06a9a01d9a41f4fdfed0e602d2e562b9
SELinux: no BUG_ON(!ss_initialized) in selinux_clone_mnt_opts

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>
security/selinux/hooks.c