Skip to content
Snippets Groups Projects
Commit a7c2a10d authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge branch 'hotfixes' of...

parents b14f7fb5 383795c2
No related branches found
No related tags found
No related merge requests found
......@@ -998,8 +998,12 @@ static int selinux_sb_show_options(struct seq_file *m, struct super_block *sb)
int rc;
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;
}
selinux_write_opts(m, &opts);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment