Skip to content

Commit

Permalink
shmem: fix LSM options parsing
Browse files Browse the repository at this point in the history
->parse_monolithic() there forgets to call security_sb_eat_lsm_opts()

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Oct 10, 2019
1 parent a3bc18a commit 33f37c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 (;;) {
Expand Down

0 comments on commit 33f37c6

Please sign in to comment.