summaryrefslogtreecommitdiffstats
path: root/security/commoncap.c
diff options
context:
space:
mode:
authorSerge Hallyn <serge.hallyn@canonical.com>2011-08-15 08:29:50 -0500
committerJames Morris <jmorris@namei.org>2011-08-16 09:20:45 +1000
commit7d8db1808a2001077a9f966180c5e4f7cc20d4c7 (patch)
treedb2e93f805316300e4ec3d0f6ab15b01f641a4f5 /security/commoncap.c
parent4d49f6710bfbd2271feab074f8c1053387e5d9fe (diff)
downloadlinux-7d8db1808a2001077a9f966180c5e4f7cc20d4c7.tar.bz2
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>
Diffstat (limited to 'security/commoncap.c')
-rw-r--r--security/commoncap.c2
1 files changed, 1 insertions, 1 deletions
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;