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

capabilities: initialize has_cap

Initialize has_cap in cap_bprm_set_creds()
Reported-by: default avatarAndrew G. Morgan <>
Signed-off-by: default avatarSerge Hallyn <>
Signed-off-by: default avatarJames Morris <>
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;
Supports Markdown
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