diff options
Diffstat (limited to 'security/security.c')
-rw-r--r-- | security/security.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index 0e1f1f124368..b13b54f0af85 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -308,6 +308,26 @@ void security_sb_post_pivotroot(struct nameidata *old_nd, struct nameidata *new_ | |||
308 | security_ops->sb_post_pivotroot(old_nd, new_nd); | 308 | security_ops->sb_post_pivotroot(old_nd, new_nd); |
309 | } | 309 | } |
310 | 310 | ||
311 | int security_sb_get_mnt_opts(const struct super_block *sb, | ||
312 | char ***mount_options, | ||
313 | int **flags, int *num_opts) | ||
314 | { | ||
315 | return security_ops->sb_get_mnt_opts(sb, mount_options, flags, num_opts); | ||
316 | } | ||
317 | |||
318 | int security_sb_set_mnt_opts(struct super_block *sb, | ||
319 | char **mount_options, | ||
320 | int *flags, int num_opts) | ||
321 | { | ||
322 | return security_ops->sb_set_mnt_opts(sb, mount_options, flags, num_opts); | ||
323 | } | ||
324 | |||
325 | void security_sb_clone_mnt_opts(const struct super_block *oldsb, | ||
326 | struct super_block *newsb) | ||
327 | { | ||
328 | security_ops->sb_clone_mnt_opts(oldsb, newsb); | ||
329 | } | ||
330 | |||
311 | int security_inode_alloc(struct inode *inode) | 331 | int security_inode_alloc(struct inode *inode) |
312 | { | 332 | { |
313 | inode->i_security = NULL; | 333 | inode->i_security = NULL; |