diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 0d4408debb45..c156f5eb1aea 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -504,6 +504,9 @@ static int selinux_get_mnt_opts(const struct super_block *sb, | |||
504 | opts->num_mnt_opts++; | 504 | opts->num_mnt_opts++; |
505 | tmp >>= 1; | 505 | tmp >>= 1; |
506 | } | 506 | } |
507 | /* Check if the Label support flag is set */ | ||
508 | if (sbsec->flags & SBLABEL_MNT) | ||
509 | opts->num_mnt_opts++; | ||
507 | 510 | ||
508 | opts->mnt_opts = kcalloc(opts->num_mnt_opts, sizeof(char *), GFP_ATOMIC); | 511 | opts->mnt_opts = kcalloc(opts->num_mnt_opts, sizeof(char *), GFP_ATOMIC); |
509 | if (!opts->mnt_opts) { | 512 | if (!opts->mnt_opts) { |