All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH dhowells/mount-api] fs: fix checking an error code of security_fs_context_parse_param
@ 2018-09-06  0:10 Andrei Vagin
  2018-09-06 10:16 ` David Howells
  0 siblings, 1 reply; 8+ messages in thread
From: Andrei Vagin @ 2018-09-06  0:10 UTC (permalink / raw)
  To: David Howells; +Cc: linux-fsdevel, Andrei Vagin

From: Andrei Vagin <avagin@gmail.com>

security_fs_context_parse_param() returns 0 if everything is okay.

Signed-off-by: Andrei Vagin <avagin@gmail.com>
---
 fs/fs_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fs_context.c b/fs/fs_context.c
index a82679441031..16bf2cb57534 100644
--- a/fs/fs_context.c
+++ b/fs/fs_context.c
@@ -146,7 +146,7 @@ int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param)
 		return ret;
 
 	ret = security_fs_context_parse_param(fc, param);
-	if (ret != -ENOPARAM)
+	if (ret)
 		/* Param belongs to the LSM or is disallowed by the LSM; so
 		 * don't pass to the FS.
 		 */
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-09-12  1:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-06  0:10 [PATCH dhowells/mount-api] fs: fix checking an error code of security_fs_context_parse_param Andrei Vagin
2018-09-06 10:16 ` David Howells
2018-09-06 10:18   ` David Howells
2018-09-11  5:12     ` Andrei Vagin
2018-09-11 20:13       ` David Howells
2018-09-06 18:44   ` [PATCH dhowells/mount-api] fs: return -ENOPARAM from security_fs_context_parse_param by default Andrei Vagin
2018-09-11 20:15     ` David Howells
2018-09-06 23:08   ` [PATCH dhowells/mount-api] fs: fix checking an error code of security_fs_context_parse_param Andrei Vagin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.