summaryrefslogtreecommitdiffstats
path: root/fs/ext4/xattr.h
diff options
context:
space:
mode:
authorMichael Halcrow <mhalcrow@google.com>2015-04-11 13:47:00 +0200
committerTheodore Ts'o <tytso@mit.edu>2015-04-11 13:47:00 +0200
commit887e2c452255fbfdc8bdb891ff2066fb26908466 (patch)
tree0baf77a89d5007f32d23076e0a2ea707e87f26c8 /fs/ext4/xattr.h
parentext4 crypto: export ext4_empty_dir() (diff)
downloadlinux-887e2c452255fbfdc8bdb891ff2066fb26908466.tar.xz
linux-887e2c452255fbfdc8bdb891ff2066fb26908466.zip
ext4 crypto: add encryption xattr support
Signed-off-by: Michael Halcrow <mhalcrow@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/xattr.h')
-rw-r--r--fs/ext4/xattr.h3
1 files changed, 3 insertions, 0 deletions
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);