Skip to content

Commit 3e53601

Browse files
committed
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: aefff51 ("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]>
1 parent d18516a commit 3e53601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/namespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5116,7 +5116,7 @@ static int statmount_opt_sec_array(struct kstatmount *s, struct seq_file *seq)
51165116
int err;
51175117

51185118
err = security_sb_show_options(seq, sb);
5119-
if (!err)
5119+
if (err)
51205120
return err;
51215121

51225122
err = statmount_opt_process(seq, start);

0 commit comments

Comments
 (0)