aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-07-26 21:08:29 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 01:35:09 -0400
commit7e3d199a4009a4094a955282daf5ecd43f2c8152 (patch)
treeea65ba1835bc1465ab07d94e0f8c7e9a2e060b5f /security
parentb424485abe2b16580a178b469917a7b6ee0c152a (diff)
TOMOYO: Fix quota check.
Commit d74725b9 "TOMOYO: Use callback for updating entries." broke tomoyo_domain_quota_is_ok() by counting deleted entries. It needs to count non-deleted entries. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security')
-rw-r--r--security/tomoyo/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/util.c b/security/tomoyo/util.c
index 150167d0cc3a..9bfc1ee8222d 100644
--- a/security/tomoyo/util.c
+++ b/security/tomoyo/util.c
@@ -911,7 +911,7 @@ bool tomoyo_domain_quota_is_ok(struct tomoyo_request_info *r)
911 if (!domain) 911 if (!domain)
912 return true; 912 return true;
913 list_for_each_entry_rcu(ptr, &domain->acl_info_list, list) { 913 list_for_each_entry_rcu(ptr, &domain->acl_info_list, list) {
914 if (!ptr->is_deleted) 914 if (ptr->is_deleted)
915 continue; 915 continue;
916 switch (ptr->type) { 916 switch (ptr->type) {
917 u16 perm; 917 u16 perm;