提交 7d8db180 编写于 作者: S Serge Hallyn 提交者: James Morris

capabilities: initialize has_cap

Initialize has_cap in cap_bprm_set_creds()
Reported-by: NAndrew G. Morgan <morgan@kernel.org>
Signed-off-by: NSerge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: NJames Morris <jmorris@namei.org>
上级 4d49f671
......@@ -479,7 +479,7 @@ int cap_bprm_set_creds(struct linux_binprm *bprm)
{
const struct cred *old = current_cred();
struct cred *new = bprm->cred;
bool effective, has_cap;
bool effective, has_cap = false;
int ret;
effective = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册