summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-10-10 04:48:01 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2019-10-10 04:48:01 +0200
commit33f37c648812bdbe1bd1eea75ddab3e799d51e77 (patch)
tree3c03a6a5e26a5815dcbe941815897c26f8d69b9d /mm
parentjffs2: Fix mounting under new mount API (diff)
downloadlinux-33f37c648812bdbe1bd1eea75ddab3e799d51e77.tar.xz
linux-33f37c648812bdbe1bd1eea75ddab3e799d51e77.zip
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 (;;) {