TOMOYO: Fix domain transition failure warning.
[deliverable/linux.git] / security / tomoyo / domain.c
index da16dfeed72800f26bd9bc12b8f68610f51706a1..9027ac1534afca2d8c58db1ee7075742f4bbaa4e 100644 (file)
@@ -515,7 +515,8 @@ struct tomoyo_domain_info *tomoyo_assign_domain(const char *domainname,
                         * that domain. Do not perform domain transition if
                         * profile for that domain is not yet created.
                         */
-                       if (!entry->ns->profile_ptr[entry->profile])
+                       if (tomoyo_policy_loaded &&
+                           !entry->ns->profile_ptr[entry->profile])
                                return NULL;
                }
                return entry;
This page took 0.024688 seconds and 5 git commands to generate.