diff options
author | Serge Hallyn <serge.hallyn@canonical.com> | 2011-08-15 15:29:50 +0200 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2011-08-16 01:20:45 +0200 |
commit | 7d8db1808a2001077a9f966180c5e4f7cc20d4c7 (patch) | |
tree | db2e93f805316300e4ec3d0f6ab15b01f641a4f5 /security | |
parent | capabilities: do not grant full privs for setuid w/ file caps + no effective ... (diff) | |
download | linux-7d8db1808a2001077a9f966180c5e4f7cc20d4c7.tar.xz linux-7d8db1808a2001077a9f966180c5e4f7cc20d4c7.zip |
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')
-rw-r--r-- | security/commoncap.c | 2 |
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; |