aboutsummaryrefslogtreecommitdiffstats
path: root/security/security.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2008-07-03 19:47:13 -0400
committerJames Morris <jmorris@namei.org>2008-07-14 01:02:05 -0400
commit2069f457848f846cb31149c9aa29b330a6b66d1b (patch)
tree199e7bb15e7d7b5cf008cd6fdb6cefc0d6af7f13 /security/security.c
parent811f3799279e567aa354c649ce22688d949ac7a9 (diff)
LSM/SELinux: show LSM mount options in /proc/mounts
This patch causes SELinux mount options to show up in /proc/mounts. As with other code in the area seq_put errors are ignored. Other LSM's will not have their mount options displayed until they fill in their own security_sb_show_options() function. Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/security.c')
-rw-r--r--security/security.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c
index 2c0a5876b939..de74fdccde26 100644
--- a/security/security.c
+++ b/security/security.c
@@ -292,6 +292,11 @@ int security_sb_kern_mount(struct super_block *sb, void *data)
292 return security_ops->sb_kern_mount(sb, data); 292 return security_ops->sb_kern_mount(sb, data);
293} 293}
294 294
295int security_sb_show_options(struct seq_file *m, struct super_block *sb)
296{
297 return security_ops->sb_show_options(m, sb);
298}
299
295int security_sb_statfs(struct dentry *dentry) 300int security_sb_statfs(struct dentry *dentry)
296{ 301{
297 return security_ops->sb_statfs(dentry); 302 return security_ops->sb_statfs(dentry);