|
@@ -998,8 +998,12 @@ static int selinux_sb_show_options(struct seq_file *m, struct super_block *sb)
|
|
|
int rc;
|
|
int rc;
|
|
|
|
|
|
|
|
rc = selinux_get_mnt_opts(sb, &opts);
|
|
rc = selinux_get_mnt_opts(sb, &opts);
|
|
|
- if (rc)
|
|
|
|
|
|
|
+ if (rc) {
|
|
|
|
|
+ /* before policy load we may get EINVAL, don't show anything */
|
|
|
|
|
+ if (rc == -EINVAL)
|
|
|
|
|
+ rc = 0;
|
|
|
return rc;
|
|
return rc;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
selinux_write_opts(m, &opts);
|
|
selinux_write_opts(m, &opts);
|
|
|
|
|
|