From: Michael Halcrow Date: Wed, 8 Apr 2015 04:19:27 +0000 (-0400) Subject: ext4 crypto: add encryption xattr support X-Git-Tag: KARO-TXA5-2015-06-26~116^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=814f8ace2d7f1ed9fa4f772272c2d88429c33a88;p=karo-tx-linux.git ext4 crypto: add encryption xattr support Change-Id: Icec301ab73c83e647c184f3b33aa0be76228dfcc Signed-off-by: Michael Halcrow Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/xattr.h b/fs/ext4/xattr.h index 29bedf5589f6..ddc0957760ba 100644 --- a/fs/ext4/xattr.h +++ b/fs/ext4/xattr.h @@ -23,6 +23,7 @@ #define EXT4_XATTR_INDEX_SECURITY 6 #define EXT4_XATTR_INDEX_SYSTEM 7 #define EXT4_XATTR_INDEX_RICHACL 8 +#define EXT4_XATTR_INDEX_ENCRYPTION 9 struct ext4_xattr_header { __le32 h_magic; /* magic number for identification */ @@ -98,6 +99,8 @@ extern const struct xattr_handler ext4_xattr_user_handler; extern const struct xattr_handler ext4_xattr_trusted_handler; extern const struct xattr_handler ext4_xattr_security_handler; +#define EXT4_XATTR_NAME_ENCRYPTION_CONTEXT "c" + extern ssize_t ext4_listxattr(struct dentry *, char *, size_t); extern int ext4_xattr_get(struct inode *, int, const char *, void *, size_t);