X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=security%2Fselinux%2Fhooks.c;h=3ae9bec5a5088ba62eab619cae7e7664151a522b;hb=a7c2a10dab4e5122cbcfa3d5e9d589a52ccc2287;hp=40d06c533f89fb574efd68507142fbe9b770d9f7;hpb=50cb993ea6cd187bfed085cb3e0747066edeb02f;p=pandora-kernel.git diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 40d06c533f89..3ae9bec5a508 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -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);