提交 a9a4935d 编写于 作者: M Mimi Zohar

ima: clear IMA_HASH

The IMA_APPRAISE and IMA_HASH policies overlap. Clear IMA_HASH properly.

Fixes: da1b0029 ("ima: support new "hash" and "dont_hash" policy actions")
Signed-off-by: NMimi Zohar <zohar@linux.vnet.ibm.com>
上级 d77ccdc6
......@@ -389,7 +389,7 @@ int ima_match_policy(struct inode *inode, const struct cred *cred, u32 secid,
action |= entry->action & IMA_DO_MASK;
if (entry->action & IMA_APPRAISE) {
action |= get_subaction(entry, func);
action ^= IMA_HASH;
action &= ~IMA_HASH;
}
if (entry->action & IMA_DO_MASK)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册