nilfs2: implement "security.*" namespace support
RFC PATCH v2 13/17 nilfs2: implement "security.*" namespace support
From: Vyacheslav Dubeyko <[email protected]>
Subject: [RFC][STEP 1][PATCH v2 13/17] nilfs2: implement "security.*" namespace support
This patch adds functionality of "security.*" namespace support.
Signed-off-by Vyacheslav Dubeyko <[email protected]>
CC Ryusuke Konishi <[email protected]>
--- fs/nilfs2/xattr.h | 19 +++++ fs/nilfs2/xattr_security.c | 190 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 209 insertions(+) create mode 100644 fs/nilfs2/xattr_security.c
fs/nilfs2/xattr.h +19 -0
@@ -56,4 +56,23 @@ static inline int nilfs_setxattr(struct dentry *dentry,ssize_t nilfs_listxattr (struct dentry *dentry,char *buffer,size_t size);int nilfs_xattr_delete_inode (struct inode *inode); +#ifdef CONFIG_NILFS2_FS_SECURITY +int nilfs_init_security (struct inode *inode,struct inode *dir, +const struct qstr *qstr); +int nilfs_init_inode_security (struct inode *inode,struct inode *dir, +const struct qstr *qstr); +#else +static inline int nilfs_init_security (struct inode *inode,struct inode *dir, +const struct qstr *qstr) +{ +return 0 ; +} +static inline int nilfs_init_inode_security (struct inode *inode, +struct inode *dir, +const struct qstr *qstr) +{ +return 0 ; +} +#endif /* CONFIG_NILFS2_FS_SECURITY */ +#endif /* _NILFS_XATTR_H */
fs/nilfs2/xattr_security.c new file +190 -0
190 lines not on this page · raw message
Signature · 8 lines
1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html