projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d18516a
)
statmount: fix security option retrieval
author
Christian Brauner
<brauner@kernel.org>
Wed, 20 Nov 2024 08:17:25 +0000
(09:17 +0100)
committer
Christian Brauner
<brauner@kernel.org>
Thu, 21 Nov 2024 08:35:31 +0000
(09:35 +0100)
Fix the inverted check for security_sb_show_options().
Link:
https://lore.kernel.org/r/c8eaa647-5d67-49b6-9401-705afcb7e4d7@stanley.mountain
Link:
https://lore.kernel.org/r/20241120-verehren-rhabarber-83a11b297bcc@brauner
Fixes:
aefff51e1c29
("statmount: retrieve security mount options")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: stable@vger.kernel.org # mainline only
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namespace.c
patch
|
blob
|
history
diff --git
a/fs/namespace.c
b/fs/namespace.c
index
17563d8
..
23e81c2
100644
(file)
--- 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);