Message ID | alpine.LRH.2.21.1910111000260.9215@namei.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | shmem: fix LSM options parsing (fwd) | expand |
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 (;;) {