mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
LSM: lift extracting and parsing LSM options into the caller of ->sb_remount()
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 <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
6be8750b4c
commit
c039bc3c24
5 changed files with 38 additions and 41 deletions
|
|
@ -390,9 +390,10 @@ int security_sb_copy_data(char *orig, char *copy)
|
|||
}
|
||||
EXPORT_SYMBOL(security_sb_copy_data);
|
||||
|
||||
int security_sb_remount(struct super_block *sb, void *data)
|
||||
int security_sb_remount(struct super_block *sb,
|
||||
struct security_mnt_opts *opts)
|
||||
{
|
||||
return call_int_hook(sb_remount, 0, sb, data);
|
||||
return call_int_hook(sb_remount, 0, sb, opts);
|
||||
}
|
||||
|
||||
int security_sb_kern_mount(struct super_block *sb, int flags,
|
||||
|
|
|
|||
Loading…
Reference in a new issue