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>
This commit is contained in:
Родитель
87ea584332
Коммит
4408e300a6
|
@ -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);
|
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:
|
out:
|
||||||
if (rc)
|
if (rc)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче