* [PATCH] security/capabilities: remove check for -EINVAL
@ 2018-08-19 18:44 Christian Brauner
0 siblings, 0 replies; only message in thread
From: Christian Brauner @ 2018-08-19 18:44 UTC (permalink / raw)
To: linux-security-module
bprm_caps_from_vfs_caps() does not return -EINVAL anymore so remove the rc
== -EINVAL check.
Signed-off-by: Christian Brauner <christian@brauner.io>
---
security/commoncap.c | 3 ---
1 file changed, 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)
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-19 18:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-19 18:44 [PATCH] security/capabilities: remove check for -EINVAL Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).