Skip to content

Commit 4408e30

Browse files
braunerJames Morris
authored andcommitted
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>
1 parent 87ea584 commit 4408e30

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

security/commoncap.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,6 @@ static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_f
684684
}
685685

686686
rc = bprm_caps_from_vfs_caps(&vcaps, bprm, effective, has_fcap);
687-
if (rc == -EINVAL)
688-
printk(KERN_NOTICE "%s: cap_from_disk returned %d for %s\n",
689-
__func__, rc, bprm->filename);
690687

691688
out:
692689
if (rc)

0 commit comments

Comments
 (0)