]> err.no Git - linux-2.6/blobdiff - security/selinux/hooks.c
bnx2x: Self-test false positive
[linux-2.6] / security / selinux / hooks.c
index 40d06c533f89fb574efd68507142fbe9b770d9f7..3ae9bec5a5088ba62eab619cae7e7664151a522b 100644 (file)
@@ -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);