diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 49865f119b16..c5d9fbbb5e5b 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -121,9 +121,8 @@ __setup("enforcing=", enforcing_setup); | |||
121 | #define selinux_enforcing_boot 1 | 121 | #define selinux_enforcing_boot 1 |
122 | #endif | 122 | #endif |
123 | 123 | ||
124 | int selinux_enabled __lsm_ro_after_init = 1; | ||
124 | #ifdef CONFIG_SECURITY_SELINUX_BOOTPARAM | 125 | #ifdef CONFIG_SECURITY_SELINUX_BOOTPARAM |
125 | int selinux_enabled = CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE; | ||
126 | |||
127 | static int __init selinux_enabled_setup(char *str) | 126 | static int __init selinux_enabled_setup(char *str) |
128 | { | 127 | { |
129 | unsigned long enabled; | 128 | unsigned long enabled; |
@@ -132,8 +131,6 @@ static int __init selinux_enabled_setup(char *str) | |||
132 | return 1; | 131 | return 1; |
133 | } | 132 | } |
134 | __setup("selinux=", selinux_enabled_setup); | 133 | __setup("selinux=", selinux_enabled_setup); |
135 | #else | ||
136 | int selinux_enabled = 1; | ||
137 | #endif | 134 | #endif |
138 | 135 | ||
139 | static unsigned int selinux_checkreqprot_boot = | 136 | static unsigned int selinux_checkreqprot_boot = |