diff options
Diffstat (limited to 'security/dummy.c')
-rw-r--r-- | security/dummy.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/security/dummy.c b/security/dummy.c index 6ff887586479..e8a00fa80469 100644 --- a/security/dummy.c +++ b/security/dummy.c | |||
@@ -258,6 +258,12 @@ static void dummy_inode_free_security (struct inode *inode) | |||
258 | return; | 258 | return; |
259 | } | 259 | } |
260 | 260 | ||
261 | static int dummy_inode_init_security (struct inode *inode, struct inode *dir, | ||
262 | char **name, void **value, size_t *len) | ||
263 | { | ||
264 | return -EOPNOTSUPP; | ||
265 | } | ||
266 | |||
261 | static int dummy_inode_create (struct inode *inode, struct dentry *dentry, | 267 | static int dummy_inode_create (struct inode *inode, struct dentry *dentry, |
262 | int mask) | 268 | int mask) |
263 | { | 269 | { |
@@ -886,6 +892,7 @@ void security_fixup_ops (struct security_operations *ops) | |||
886 | set_to_dummy_if_null(ops, sb_post_pivotroot); | 892 | set_to_dummy_if_null(ops, sb_post_pivotroot); |
887 | set_to_dummy_if_null(ops, inode_alloc_security); | 893 | set_to_dummy_if_null(ops, inode_alloc_security); |
888 | set_to_dummy_if_null(ops, inode_free_security); | 894 | set_to_dummy_if_null(ops, inode_free_security); |
895 | set_to_dummy_if_null(ops, inode_init_security); | ||
889 | set_to_dummy_if_null(ops, inode_create); | 896 | set_to_dummy_if_null(ops, inode_create); |
890 | set_to_dummy_if_null(ops, inode_post_create); | 897 | set_to_dummy_if_null(ops, inode_post_create); |
891 | set_to_dummy_if_null(ops, inode_link); | 898 | set_to_dummy_if_null(ops, inode_link); |