diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/dummy.c | 8 | ||||
-rw-r--r-- | security/selinux/hooks.c | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/security/dummy.c b/security/dummy.c index 6febe7d39fa0..0a553d39729f 100644 --- a/security/dummy.c +++ b/security/dummy.c | |||
@@ -378,7 +378,7 @@ static int dummy_inode_removexattr (struct dentry *dentry, char *name) | |||
378 | return 0; | 378 | return 0; |
379 | } | 379 | } |
380 | 380 | ||
381 | static int dummy_inode_getsecurity(struct inode *inode, const char *name, void *buffer, size_t size, int err) | 381 | static int dummy_inode_getsecurity(const struct inode *inode, const char *name, void *buffer, size_t size, int err) |
382 | { | 382 | { |
383 | return -EOPNOTSUPP; | 383 | return -EOPNOTSUPP; |
384 | } | 384 | } |
@@ -393,6 +393,11 @@ static int dummy_inode_listsecurity(struct inode *inode, char *buffer, size_t bu | |||
393 | return 0; | 393 | return 0; |
394 | } | 394 | } |
395 | 395 | ||
396 | static const char *dummy_inode_xattr_getsuffix(void) | ||
397 | { | ||
398 | return NULL; | ||
399 | } | ||
400 | |||
396 | static int dummy_file_permission (struct file *file, int mask) | 401 | static int dummy_file_permission (struct file *file, int mask) |
397 | { | 402 | { |
398 | return 0; | 403 | return 0; |
@@ -930,6 +935,7 @@ void security_fixup_ops (struct security_operations *ops) | |||
930 | set_to_dummy_if_null(ops, inode_getxattr); | 935 | set_to_dummy_if_null(ops, inode_getxattr); |
931 | set_to_dummy_if_null(ops, inode_listxattr); | 936 | set_to_dummy_if_null(ops, inode_listxattr); |
932 | set_to_dummy_if_null(ops, inode_removexattr); | 937 | set_to_dummy_if_null(ops, inode_removexattr); |
938 | set_to_dummy_if_null(ops, inode_xattr_getsuffix); | ||
933 | set_to_dummy_if_null(ops, inode_getsecurity); | 939 | set_to_dummy_if_null(ops, inode_getsecurity); |
934 | set_to_dummy_if_null(ops, inode_setsecurity); | 940 | set_to_dummy_if_null(ops, inode_setsecurity); |
935 | set_to_dummy_if_null(ops, inode_listsecurity); | 941 | set_to_dummy_if_null(ops, inode_listsecurity); |
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 9c08a19cc81b..81b726b1a419 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2247,7 +2247,7 @@ static const char *selinux_inode_xattr_getsuffix(void) | |||
2247 | * | 2247 | * |
2248 | * Permission check is handled by selinux_inode_getxattr hook. | 2248 | * Permission check is handled by selinux_inode_getxattr hook. |
2249 | */ | 2249 | */ |
2250 | static int selinux_inode_getsecurity(struct inode *inode, const char *name, void *buffer, size_t size, int err) | 2250 | static int selinux_inode_getsecurity(const struct inode *inode, const char *name, void *buffer, size_t size, int err) |
2251 | { | 2251 | { |
2252 | struct inode_security_struct *isec = inode->i_security; | 2252 | struct inode_security_struct *isec = inode->i_security; |
2253 | 2253 | ||