From 7d8db1808a2001077a9f966180c5e4f7cc20d4c7 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Mon, 15 Aug 2011 08:29:50 -0500 Subject: capabilities: initialize has_cap Initialize has_cap in cap_bprm_set_creds() Reported-by: Andrew G. Morgan Signed-off-by: Serge Hallyn Signed-off-by: James Morris --- security/commoncap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/commoncap.c b/security/commoncap.c index 0f620c564fa8..ee4f8486e5f5 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -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; -- cgit v1.2.3