Skip to content

Commit

Permalink
security/capabilities: remove check for -EINVAL
Browse files Browse the repository at this point in the history
bprm_caps_from_vfs_caps() never returned -EINVAL so remove the
rc == -EINVAL check.

Signed-off-by: Christian Brauner <[email protected]>
Reviewed-by: Serge Hallyn <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
brauner authored and James Morris committed Aug 29, 2018
1 parent 87ea584 commit 4408e30
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions security/commoncap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4408e30

Please sign in to comment.