diff options
author | Christian Brauner | 2018-08-22 13:52:40 +0200 |
---|---|---|
committer | James Morris | 2018-08-29 09:05:28 -0700 |
commit | 4408e300a67ab2ce2505087986a9fe922c800ffd (patch) | |
tree | acbddf2995cb704796acbffd5052a111522f0b38 /security/commoncap.c | |
parent | 87ea58433208d17295e200d56be5e2a4fe4ce7d6 (diff) |
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.c | 3 |
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) |