diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-02 05:06:57 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-21 17:45:41 +0100 |
commit | c039bc3c2498724946304a8f964244a9b6af1043 (patch) | |
tree | ce98ee8e698a28cbaed969460457941e8b34f2e3 /security/security.c | |
parent | LSM: lift parsing LSM options into the caller of ->sb_kern_mount() (diff) | |
download | linux-c039bc3c2498724946304a8f964244a9b6af1043.tar.xz linux-c039bc3c2498724946304a8f964244a9b6af1043.zip |
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 <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/security/security.c b/security/security.c index b5fc8e1e849c..3f50beb30fb1 100644 --- a/security/security.c +++ b/security/security.c @@ -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, |