LSM: split ->sb_set_mnt_opts() out of ->sb_kern_mount()
... leaving the "is it kernel-internal" logics in the caller. Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -405,10 +405,9 @@ int security_sb_remount(struct super_block *sb,
|
||||
return call_int_hook(sb_remount, 0, sb, opts);
|
||||
}
|
||||
|
||||
int security_sb_kern_mount(struct super_block *sb, int flags,
|
||||
struct security_mnt_opts *opts)
|
||||
int security_sb_kern_mount(struct super_block *sb)
|
||||
{
|
||||
return call_int_hook(sb_kern_mount, 0, sb, flags, opts);
|
||||
return call_int_hook(sb_kern_mount, 0, sb);
|
||||
}
|
||||
|
||||
int security_sb_show_options(struct seq_file *m, struct super_block *sb)
|
||||
|
||||
Reference in New Issue
Block a user