capabilities: initialize has_cap

Initialize has_cap in cap_bprm_set_creds()

Reported-by: Andrew G. Morgan <[email protected]>
Signed-off-by: Serge Hallyn <[email protected]>
Signed-off-by: James Morris <[email protected]>
This commit is contained in:
Serge Hallyn 2011-08-15 08:29:50 -05:00 • committed by James Morris
commit 7d8db1808a

View file

@ -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;