diff options
-rw-r--r-- | include/linux/security.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index f399cf10e2a8..d9f7ec41ba51 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -2045,14 +2045,16 @@ static inline int security_inode_init_security(struct inode *inode, | |||
2045 | initxattrs initxattrs, | 2045 | initxattrs initxattrs, |
2046 | void *fs_data) | 2046 | void *fs_data) |
2047 | { | 2047 | { |
2048 | return -EOPNOTSUPP; | 2048 | return 0; |
2049 | } | 2049 | } |
2050 | 2050 | ||
2051 | int security_old_inode_init_security(struct inode *inode, struct inode *dir, | 2051 | static inline int security_old_inode_init_security(struct inode *inode, |
2052 | const struct qstr *qstr, char **name, | 2052 | struct inode *dir, |
2053 | void **value, size_t *len) | 2053 | const struct qstr *qstr, |
2054 | char **name, void **value, | ||
2055 | size_t *len) | ||
2054 | { | 2056 | { |
2055 | return -EOPNOTSUPP; | 2057 | return 0; |
2056 | } | 2058 | } |
2057 | 2059 | ||
2058 | static inline int security_inode_create(struct inode *dir, | 2060 | static inline int security_inode_create(struct inode *dir, |