diff options
-rw-r--r-- | security/tomoyo/tomoyo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/tomoyo/tomoyo.c b/security/tomoyo/tomoyo.c index 2615c7d43960..d6f68a0ec2dc 100644 --- a/security/tomoyo/tomoyo.c +++ b/security/tomoyo/tomoyo.c | |||
@@ -51,12 +51,14 @@ static int tomoyo_bprm_set_creds(struct linux_binprm *bprm) | |||
51 | */ | 51 | */ |
52 | if (bprm->cred_prepared) | 52 | if (bprm->cred_prepared) |
53 | return 0; | 53 | return 0; |
54 | #ifndef CONFIG_SECURITY_TOMOYO_OMIT_USERSPACE_LOADER | ||
54 | /* | 55 | /* |
55 | * Load policy if /sbin/tomoyo-init exists and /sbin/init is requested | 56 | * Load policy if /sbin/tomoyo-init exists and /sbin/init is requested |
56 | * for the first time. | 57 | * for the first time. |
57 | */ | 58 | */ |
58 | if (!tomoyo_policy_loaded) | 59 | if (!tomoyo_policy_loaded) |
59 | tomoyo_load_policy(bprm->filename); | 60 | tomoyo_load_policy(bprm->filename); |
61 | #endif | ||
60 | /* | 62 | /* |
61 | * Release reference to "struct tomoyo_domain_info" stored inside | 63 | * Release reference to "struct tomoyo_domain_info" stored inside |
62 | * "bprm->cred->security". New reference to "struct tomoyo_domain_info" | 64 | * "bprm->cred->security". New reference to "struct tomoyo_domain_info" |