diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-10-09 22:48:01 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-10-09 22:48:01 -0400 |
commit | 33f37c648812bdbe1bd1eea75ddab3e799d51e77 (patch) | |
tree | 3c03a6a5e26a5815dcbe941815897c26f8d69b9d | |
parent | a3bc18a48e2e678efe62f1f9989902f9cd19e0ff (diff) |
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>
-rw-r--r-- | mm/shmem.c | 6 |
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) | |||
3482 | { | 3482 | { |
3483 | char *options = data; | 3483 | char *options = data; |
3484 | 3484 | ||
3485 | if (options) { | ||
3486 | int err = security_sb_eat_lsm_opts(options, &fc->security); | ||
3487 | if (err) | ||
3488 | return err; | ||
3489 | } | ||
3490 | |||
3485 | while (options != NULL) { | 3491 | while (options != NULL) { |
3486 | char *this_char = options; | 3492 | char *this_char = options; |
3487 | for (;;) { | 3493 | for (;;) { |