summaryrefslogtreecommitdiffstats
path: root/security/commoncap.c
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 18:05:28 +0200
commit4408e300a67ab2ce2505087986a9fe922c800ffd (patch)
treeacbddf2995cb704796acbffd5052a111522f0b38 /security/commoncap.c
parentsecurity: check for kstrdup() failure in lsm_append() (diff)
downloadlinux-4408e300a67ab2ce2505087986a9fe922c800ffd.tar.xz
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/commoncap.c')
-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)