git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b14f7fb
)
Merge branch 'hotfixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
author
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 1 Aug 2008 17:55:57 +0000
(10:55 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 1 Aug 2008 17:55:57 +0000
(10:55 -0700)
* 'hotfixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
SELinux: /proc/mounts should show what it can
security/selinux/hooks.c
patch
|
blob
|
history
diff --git
a/security/selinux/hooks.c
b/security/selinux/hooks.c
index
40d06c5
..
3ae9bec
100644
(file)
--- 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);