diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/hooks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index bb230d5d7085..a985d0bc59bb 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -5830,12 +5830,12 @@ int selinux_disable(void) | |||
5830 | selinux_disabled = 1; | 5830 | selinux_disabled = 1; |
5831 | selinux_enabled = 0; | 5831 | selinux_enabled = 0; |
5832 | 5832 | ||
5833 | /* Try to destroy the avc node cache */ | ||
5834 | avc_disable(); | ||
5835 | |||
5836 | /* Reset security_ops to the secondary module, dummy or capability. */ | 5833 | /* Reset security_ops to the secondary module, dummy or capability. */ |
5837 | security_ops = secondary_ops; | 5834 | security_ops = secondary_ops; |
5838 | 5835 | ||
5836 | /* Try to destroy the avc node cache */ | ||
5837 | avc_disable(); | ||
5838 | |||
5839 | /* Unregister netfilter hooks. */ | 5839 | /* Unregister netfilter hooks. */ |
5840 | selinux_nf_ip_exit(); | 5840 | selinux_nf_ip_exit(); |
5841 | 5841 | ||