diff options
Diffstat (limited to 'security/tomoyo')
-rw-r--r-- | security/tomoyo/domain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c index da16dfeed728..9027ac1534af 100644 --- a/security/tomoyo/domain.c +++ b/security/tomoyo/domain.c | |||
@@ -515,7 +515,8 @@ struct tomoyo_domain_info *tomoyo_assign_domain(const char *domainname, | |||
515 | * that domain. Do not perform domain transition if | 515 | * that domain. Do not perform domain transition if |
516 | * profile for that domain is not yet created. | 516 | * profile for that domain is not yet created. |
517 | */ | 517 | */ |
518 | if (!entry->ns->profile_ptr[entry->profile]) | 518 | if (tomoyo_policy_loaded && |
519 | !entry->ns->profile_ptr[entry->profile]) | ||
519 | return NULL; | 520 | return NULL; |
520 | } | 521 | } |
521 | return entry; | 522 | return entry; |