diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index f847514d6f03..0f8ae2fbd14a 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -6928,16 +6928,6 @@ static struct security_hook_list selinux_hooks[] __lsm_ro_after_init = { | |||
6928 | 6928 | ||
6929 | static __init int selinux_init(void) | 6929 | static __init int selinux_init(void) |
6930 | { | 6930 | { |
6931 | if (!security_module_enable("selinux")) { | ||
6932 | selinux_enabled = 0; | ||
6933 | return 0; | ||
6934 | } | ||
6935 | |||
6936 | if (!selinux_enabled) { | ||
6937 | pr_info("SELinux: Disabled at boot.\n"); | ||
6938 | return 0; | ||
6939 | } | ||
6940 | |||
6941 | pr_info("SELinux: Initializing.\n"); | 6931 | pr_info("SELinux: Initializing.\n"); |
6942 | 6932 | ||
6943 | memset(&selinux_state, 0, sizeof(selinux_state)); | 6933 | memset(&selinux_state, 0, sizeof(selinux_state)); |