提交 1d48e14a 编写于 作者: A Ajo Jose Panoor 提交者: Zheng Zengkai

imans: Use initial ima namespace domain tag when IMANS is disabled.

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4C9AE
CVE: NA

-----------------------------------------------------------------

As part of the imans support, a key domain tag is added to the search
criteria in digsig module. When IMA Namespace is disabled, the initial
ima namespace domain tag should be used instead of nsproxy.
Signed-off-by: NAjo Jose Panoor <ajo.jose.panoor@huawei.com>
Reviewed-by: NZhang Tianxing <zhangtianxing3@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 ae7fe1f9
......@@ -74,8 +74,11 @@ static struct key_tag *domain_tag_from_id(const unsigned int id)
return ERR_PTR(-EINVAL);
if (id == INTEGRITY_KEYRING_IMA)
#ifdef CONFIG_IMA_NS
return current->nsproxy->ima_ns->key_domain;
#else
return init_ima_ns.key_domain;
#endif
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册