diff options
Diffstat (limited to 'security/tomoyo/domain.c')
-rw-r--r-- | security/tomoyo/domain.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/security/tomoyo/domain.c b/security/tomoyo/domain.c index acb8c397d5cf..e1edec4a9b9d 100644 --- a/security/tomoyo/domain.c +++ b/security/tomoyo/domain.c | |||
@@ -153,7 +153,7 @@ static int tomoyo_update_domain_initializer_entry(const char *domainname, | |||
153 | if (!saved_program) | 153 | if (!saved_program) |
154 | goto out; | 154 | goto out; |
155 | if (!is_delete) | 155 | if (!is_delete) |
156 | entry = kmalloc(sizeof(*entry), GFP_KERNEL); | 156 | entry = kmalloc(sizeof(*entry), GFP_NOFS); |
157 | mutex_lock(&tomoyo_policy_lock); | 157 | mutex_lock(&tomoyo_policy_lock); |
158 | list_for_each_entry_rcu(ptr, &tomoyo_domain_initializer_list, list) { | 158 | list_for_each_entry_rcu(ptr, &tomoyo_domain_initializer_list, list) { |
159 | if (ptr->is_not != is_not || | 159 | if (ptr->is_not != is_not || |
@@ -373,7 +373,7 @@ static int tomoyo_update_domain_keeper_entry(const char *domainname, | |||
373 | if (!saved_domainname) | 373 | if (!saved_domainname) |
374 | goto out; | 374 | goto out; |
375 | if (!is_delete) | 375 | if (!is_delete) |
376 | entry = kmalloc(sizeof(*entry), GFP_KERNEL); | 376 | entry = kmalloc(sizeof(*entry), GFP_NOFS); |
377 | mutex_lock(&tomoyo_policy_lock); | 377 | mutex_lock(&tomoyo_policy_lock); |
378 | list_for_each_entry_rcu(ptr, &tomoyo_domain_keeper_list, list) { | 378 | list_for_each_entry_rcu(ptr, &tomoyo_domain_keeper_list, list) { |
379 | if (ptr->is_not != is_not || | 379 | if (ptr->is_not != is_not || |
@@ -565,7 +565,7 @@ static int tomoyo_update_alias_entry(const char *original_name, | |||
565 | if (!saved_original_name || !saved_aliased_name) | 565 | if (!saved_original_name || !saved_aliased_name) |
566 | goto out; | 566 | goto out; |
567 | if (!is_delete) | 567 | if (!is_delete) |
568 | entry = kmalloc(sizeof(*entry), GFP_KERNEL); | 568 | entry = kmalloc(sizeof(*entry), GFP_NOFS); |
569 | mutex_lock(&tomoyo_policy_lock); | 569 | mutex_lock(&tomoyo_policy_lock); |
570 | list_for_each_entry_rcu(ptr, &tomoyo_alias_list, list) { | 570 | list_for_each_entry_rcu(ptr, &tomoyo_alias_list, list) { |
571 | if (ptr->original_name != saved_original_name || | 571 | if (ptr->original_name != saved_original_name || |
@@ -665,7 +665,7 @@ struct tomoyo_domain_info *tomoyo_find_or_assign_new_domain(const char * | |||
665 | saved_domainname = tomoyo_get_name(domainname); | 665 | saved_domainname = tomoyo_get_name(domainname); |
666 | if (!saved_domainname) | 666 | if (!saved_domainname) |
667 | return NULL; | 667 | return NULL; |
668 | entry = kzalloc(sizeof(*entry), GFP_KERNEL); | 668 | entry = kzalloc(sizeof(*entry), GFP_NOFS); |
669 | mutex_lock(&tomoyo_policy_lock); | 669 | mutex_lock(&tomoyo_policy_lock); |
670 | list_for_each_entry_rcu(domain, &tomoyo_domain_list, list) { | 670 | list_for_each_entry_rcu(domain, &tomoyo_domain_list, list) { |
671 | if (domain->is_deleted || | 671 | if (domain->is_deleted || |
@@ -705,7 +705,7 @@ int tomoyo_find_next_domain(struct linux_binprm *bprm) | |||
705 | * This function assumes that the size of buffer returned by | 705 | * This function assumes that the size of buffer returned by |
706 | * tomoyo_realpath() = TOMOYO_MAX_PATHNAME_LEN. | 706 | * tomoyo_realpath() = TOMOYO_MAX_PATHNAME_LEN. |
707 | */ | 707 | */ |
708 | struct tomoyo_page_buffer *tmp = kzalloc(sizeof(*tmp), GFP_KERNEL); | 708 | struct tomoyo_page_buffer *tmp = kzalloc(sizeof(*tmp), GFP_NOFS); |
709 | struct tomoyo_domain_info *old_domain = tomoyo_domain(); | 709 | struct tomoyo_domain_info *old_domain = tomoyo_domain(); |
710 | struct tomoyo_domain_info *domain = NULL; | 710 | struct tomoyo_domain_info *domain = NULL; |
711 | const char *old_domain_name = old_domain->domainname->name; | 711 | const char *old_domain_name = old_domain->domainname->name; |