mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
LSM: lift parsing LSM options into the caller of ->sb_kern_mount()
This paves the way for retaining the LSM options from a common filesystem mount context during a mount parameter parsing phase to be instituted prior to actual mount/reconfiguration actions. Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6466f3d193
commit
6be8750b4c
6 changed files with 31 additions and 54 deletions
|
@ -395,9 +395,10 @@ int security_sb_remount(struct super_block *sb, void *data)
|
|||
return call_int_hook(sb_remount, 0, sb, data);
|
||||
}
|
||||
|
||||
int security_sb_kern_mount(struct super_block *sb, int flags, void *data)
|
||||
int security_sb_kern_mount(struct super_block *sb, int flags,
|
||||
struct security_mnt_opts *opts)
|
||||
{
|
||||
return call_int_hook(sb_kern_mount, 0, sb, flags, data);
|
||||
return call_int_hook(sb_kern_mount, 0, sb, flags, opts);
|
||||
}
|
||||
|
||||
int security_sb_show_options(struct seq_file *m, struct super_block *sb)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue