From 7e3d199a4009a4094a955282daf5ecd43f2c8152 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Tue, 27 Jul 2010 10:08:29 +0900 Subject: 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 Signed-off-by: James Morris --- security/tomoyo/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/tomoyo/util.c b/security/tomoyo/util.c index 150167d0cc3..9bfc1ee8222 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) if (!domain) return true; list_for_each_entry_rcu(ptr, &domain->acl_info_list, list) { - if (!ptr->is_deleted) + if (ptr->is_deleted) continue; switch (ptr->type) { u16 perm; -- cgit v1.2.3