aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2024-11-20 08:17:25 +0000
committerChristian Brauner <[email protected]>2024-11-21 08:35:31 +0000
commit3e5360167ac3bccdc032cdafa68d4904a8fa0c75 (patch)
treeb90969e38dd9134e9ecd64846f65f6b6d9f5f0d7
parentstatmount: clean up unescaped option handling (diff)
downloadkernel-3e5360167ac3bccdc032cdafa68d4904a8fa0c75.tar.gz
kernel-3e5360167ac3bccdc032cdafa68d4904a8fa0c75.zip
statmount: fix security option retrieval
Fix the inverted check for security_sb_show_options(). Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/20241120-verehren-rhabarber-83a11b297bcc@brauner Fixes: aefff51e1c29 ("statmount: retrieve security mount options") Reviewed-by: Jeff Layton <[email protected]> Reported-by: Dan Carpenter <[email protected]> Cc: [email protected] # mainline only Signed-off-by: Christian Brauner <[email protected]>
-rw-r--r--fs/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 17563d8e382b..23e81c2a1e3f 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -5116,7 +5116,7 @@ static int statmount_opt_sec_array(struct kstatmount *s, struct seq_file *seq)
int err;
err = security_sb_show_options(seq, sb);
- if (!err)
+ if (err)
return err;
err = statmount_opt_process(seq, start);