capabilities: initialize has_cap
Initialize has_cap in cap_bprm_set_creds() Reported-by: Andrew G. Morgan <morgan@kernel.org> Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
parent
4d49f6710b
commit
7d8db1808a
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ int cap_bprm_set_creds(struct linux_binprm *bprm)
|
||||||
{
|
{
|
||||||
const struct cred *old = current_cred();
|
const struct cred *old = current_cred();
|
||||||
struct cred *new = bprm->cred;
|
struct cred *new = bprm->cred;
|
||||||
bool effective, has_cap;
|
bool effective, has_cap = false;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
effective = false;
|
effective = false;
|
||||||
|
|
Loading…
Reference in a new issue