浏览代码

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>
Tetsuo Handa 15 年之前
父节点
当前提交
7e3d199a40
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      security/tomoyo/util.c

+ 1 - 1
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;