Commit 7d8db180 authored by Serge Hallyn's avatar Serge Hallyn Committed by James Morris

capabilities: initialize has_cap

Initialize has_cap in cap_bprm_set_creds()
Reported-by: default avatarAndrew G. Morgan <morgan@kernel.org>
Signed-off-by: default avatarSerge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment