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 <morgan@kernel.org>
Signed-off-by: default avatarSerge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 4d49f671
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;