diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-01 22:42:44 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-12-21 11:45:30 -0500 |
commit | 6be8750b4cba8c37170f46b29841d112f1be749b (patch) | |
tree | 0b3386c080d73fc666afcdcd1db5290b990af349 /include/linux/security.h | |
parent | 6466f3d193a99426db067855345e763de2160f1c (diff) |
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>
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index d170a5b031f3..f2f88e41f35f 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -250,7 +250,8 @@ int security_sb_alloc(struct super_block *sb); | |||
250 | void security_sb_free(struct super_block *sb); | 250 | void security_sb_free(struct super_block *sb); |
251 | int security_sb_copy_data(char *orig, char *copy); | 251 | int security_sb_copy_data(char *orig, char *copy); |
252 | int security_sb_remount(struct super_block *sb, void *data); | 252 | int security_sb_remount(struct super_block *sb, void *data); |
253 | int security_sb_kern_mount(struct super_block *sb, int flags, void *data); | 253 | int security_sb_kern_mount(struct super_block *sb, int flags, |
254 | struct security_mnt_opts *opts); | ||
254 | int security_sb_show_options(struct seq_file *m, struct super_block *sb); | 255 | int security_sb_show_options(struct seq_file *m, struct super_block *sb); |
255 | int security_sb_statfs(struct dentry *dentry); | 256 | int security_sb_statfs(struct dentry *dentry); |
256 | int security_sb_mount(const char *dev_name, const struct path *path, | 257 | int security_sb_mount(const char *dev_name, const struct path *path, |
@@ -565,7 +566,8 @@ static inline int security_sb_remount(struct super_block *sb, void *data) | |||
565 | return 0; | 566 | return 0; |
566 | } | 567 | } |
567 | 568 | ||
568 | static inline int security_sb_kern_mount(struct super_block *sb, int flags, void *data) | 569 | static inline int security_sb_kern_mount(struct super_block *sb, int flags, |
570 | struct security_mnt_opts *opts) | ||
569 | { | 571 | { |
570 | return 0; | 572 | return 0; |
571 | } | 573 | } |