|
@@ -4708,8 +4708,6 @@ static __init int smack_init(void)
|
|
if (!security_module_enable("smack"))
|
|
if (!security_module_enable("smack"))
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
- smack_enabled = 1;
|
|
|
|
-
|
|
|
|
smack_inode_cache = KMEM_CACHE(inode_smack, 0);
|
|
smack_inode_cache = KMEM_CACHE(inode_smack, 0);
|
|
if (!smack_inode_cache)
|
|
if (!smack_inode_cache)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
@@ -4721,6 +4719,8 @@ static __init int smack_init(void)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ smack_enabled = 1;
|
|
|
|
+
|
|
pr_info("Smack: Initializing.\n");
|
|
pr_info("Smack: Initializing.\n");
|
|
#ifdef CONFIG_SECURITY_SMACK_NETFILTER
|
|
#ifdef CONFIG_SECURITY_SMACK_NETFILTER
|
|
pr_info("Smack: Netfilter enabled.\n");
|
|
pr_info("Smack: Netfilter enabled.\n");
|