mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]> Signed-off-by: James Morris <[email protected]>
This commit is contained in:
parent
811f379927
commit
2069f45784
5 changed files with 85 additions and 4 deletions
|
|
@ -292,6 +292,11 @@ int security_sb_kern_mount(struct super_block *sb, void *data)
|
|||
return security_ops->sb_kern_mount(sb, data);
|
||||
}
|
||||
|
||||
int security_sb_show_options(struct seq_file *m, struct super_block *sb)
|
||||
{
|
||||
return security_ops->sb_show_options(m, sb);
|
||||
}
|
||||
|
||||
int security_sb_statfs(struct dentry *dentry)
|
||||
{
|
||||
return security_ops->sb_statfs(dentry);
|
||||
|
|
|
|||
Loading…
Reference in a new issue