summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorChristian Brauner <christian@brauner.io>2018-08-22 13:52:40 +0200
committerJames Morris <james.morris@microsoft.com>2018-08-29 09:05:28 -0700
commit4408e300a67ab2ce2505087986a9fe922c800ffd (patch)
treeacbddf2995cb704796acbffd5052a111522f0b38 /security
parent87ea58433208d17295e200d56be5e2a4fe4ce7d6 (diff)
downloadtalos-obmc-linux-4408e300a67ab2ce2505087986a9fe922c800ffd.tar.gz
talos-obmc-linux-4408e300a67ab2ce2505087986a9fe922c800ffd.zip
security/capabilities: remove check for -EINVAL
bprm_caps_from_vfs_caps() never returned -EINVAL so remove the rc == -EINVAL check. Signed-off-by: Christian Brauner <christian@brauner.io> Reviewed-by: Serge Hallyn <serge@hallyn.com> Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'security')
-rw-r--r--security/commoncap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/security/commoncap.c b/security/commoncap.c
index f4c33abd9959..6012f0cd8157 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -684,9 +684,6 @@ static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_f
}
rc = bprm_caps_from_vfs_caps(&vcaps, bprm, effective, has_fcap);
- if (rc == -EINVAL)
- printk(KERN_NOTICE "%s: cap_from_disk returned %d for %s\n",
- __func__, rc, bprm->filename);
out:
if (rc)
OpenPOWER on IntegriCloud