From: Al Viro Date: Thu, 10 Oct 2019 02:48:01 +0000 (-0400) Subject: shmem: fix LSM options parsing X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=33f37c648812bdbe1bd1eea75ddab3e799d51e77;p=linux.git shmem: fix LSM options parsing ->parse_monolithic() there forgets to call security_sb_eat_lsm_opts() Signed-off-by: Al Viro --- diff --git a/mm/shmem.c b/mm/shmem.c index 0f7fd4a85db6e..8dcc8d04cbaf9 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 (;;) {