diff options
Diffstat (limited to 'security/dummy.c')
-rw-r--r-- | security/dummy.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/security/dummy.c b/security/dummy.c index 3ccfbbe973b6..a3b29d0d00e5 100644 --- a/security/dummy.c +++ b/security/dummy.c | |||
@@ -245,6 +245,29 @@ static void dummy_sb_post_pivotroot (struct nameidata *old_nd, struct nameidata | |||
245 | return; | 245 | return; |
246 | } | 246 | } |
247 | 247 | ||
248 | static int dummy_sb_get_mnt_opts(const struct super_block *sb, char ***mount_options, | ||
249 | int **flags, int *num_opts) | ||
250 | { | ||
251 | *mount_options = NULL; | ||
252 | *flags = NULL; | ||
253 | *num_opts = 0; | ||
254 | return 0; | ||
255 | } | ||
256 | |||
257 | static int dummy_sb_set_mnt_opts(struct super_block *sb, char **mount_options, | ||
258 | int *flags, int num_opts) | ||
259 | { | ||
260 | if (unlikely(num_opts)) | ||
261 | return -EOPNOTSUPP; | ||
262 | return 0; | ||
263 | } | ||
264 | |||
265 | static void dummy_sb_clone_mnt_opts(const struct super_block *oldsb, | ||
266 | struct super_block *newsb) | ||
267 | { | ||
268 | return; | ||
269 | } | ||
270 | |||
248 | static int dummy_inode_alloc_security (struct inode *inode) | 271 | static int dummy_inode_alloc_security (struct inode *inode) |
249 | { | 272 | { |
250 | return 0; | 273 | return 0; |
@@ -998,6 +1021,9 @@ void security_fixup_ops (struct security_operations *ops) | |||
998 | set_to_dummy_if_null(ops, sb_post_addmount); | 1021 | set_to_dummy_if_null(ops, sb_post_addmount); |
999 | set_to_dummy_if_null(ops, sb_pivotroot); | 1022 | set_to_dummy_if_null(ops, sb_pivotroot); |
1000 | set_to_dummy_if_null(ops, sb_post_pivotroot); | 1023 | set_to_dummy_if_null(ops, sb_post_pivotroot); |
1024 | set_to_dummy_if_null(ops, sb_get_mnt_opts); | ||
1025 | set_to_dummy_if_null(ops, sb_set_mnt_opts); | ||
1026 | set_to_dummy_if_null(ops, sb_clone_mnt_opts); | ||
1001 | set_to_dummy_if_null(ops, inode_alloc_security); | 1027 | set_to_dummy_if_null(ops, inode_alloc_security); |
1002 | set_to_dummy_if_null(ops, inode_free_security); | 1028 | set_to_dummy_if_null(ops, inode_free_security); |
1003 | set_to_dummy_if_null(ops, inode_init_security); | 1029 | set_to_dummy_if_null(ops, inode_init_security); |