Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4408e300 authored by Christian Brauner's avatar Christian Brauner Committed by James Morris
Browse files

security/capabilities: remove check for -EINVAL



bprm_caps_from_vfs_caps() never returned -EINVAL so remove the
rc == -EINVAL check.

Signed-off-by: default avatarChristian Brauner <christian@brauner.io>
Reviewed-by: default avatarSerge Hallyn <serge@hallyn.com>
Signed-off-by: default avatarJames Morris <james.morris@microsoft.com>
parent 87ea5843
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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)