Skip to content

Commit

Permalink
TOMOYO: Fix quota check.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tetsuo Handa authored and James Morris committed Aug 2, 2010
1 parent b424485 commit 7e3d199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/tomoyo/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e3d199

Please sign in to comment.