summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-10-09 22:48:01 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2019-10-09 22:48:01 -0400
commit33f37c648812bdbe1bd1eea75ddab3e799d51e77 (patch)
tree3c03a6a5e26a5815dcbe941815897c26f8d69b9d /mm
parenta3bc18a48e2e678efe62f1f9989902f9cd19e0ff (diff)
downloadlinux-33f37c648812bdbe1bd1eea75ddab3e799d51e77.tar.bz2
shmem: fix LSM options parsing
->parse_monolithic() there forgets to call security_sb_eat_lsm_opts() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm')
-rw-r--r--mm/shmem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 0f7fd4a85db6..8dcc8d04cbaf 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -3482,6 +3482,12 @@ static int shmem_parse_options(struct fs_context *fc, void *data)
{
char *options = data;
+ if (options) {
+ int err = security_sb_eat_lsm_opts(options, &fc->security);
+ if (err)
+ return err;
+ }
+
while (options != NULL) {
char *this_char = options;
for (;;) {