diff options
Diffstat (limited to 'fs/ecryptfs/ecryptfs_kernel.h')
-rw-r--r-- | fs/ecryptfs/ecryptfs_kernel.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h index f21385f97da5..7bbd6e6e2743 100644 --- a/fs/ecryptfs/ecryptfs_kernel.h +++ b/fs/ecryptfs/ecryptfs_kernel.h | |||
@@ -43,13 +43,14 @@ | |||
43 | * module; userspace tools such as the mount helper read | 43 | * module; userspace tools such as the mount helper read |
44 | * ECRYPTFS_VERSIONING_MASK from a sysfs handle in order to determine | 44 | * ECRYPTFS_VERSIONING_MASK from a sysfs handle in order to determine |
45 | * how to behave. */ | 45 | * how to behave. */ |
46 | #define ECRYPTFS_VERSIONING_PASSPHRASE 0x00000001 | 46 | #define ECRYPTFS_VERSIONING_PASSPHRASE 0x00000001 |
47 | #define ECRYPTFS_VERSIONING_PUBKEY 0x00000002 | 47 | #define ECRYPTFS_VERSIONING_PUBKEY 0x00000002 |
48 | #define ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH 0x00000004 | 48 | #define ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH 0x00000004 |
49 | #define ECRYPTFS_VERSIONING_POLICY 0x00000008 | 49 | #define ECRYPTFS_VERSIONING_POLICY 0x00000008 |
50 | #define ECRYPTFS_VERSIONING_XATTR 0x00000010 | ||
50 | #define ECRYPTFS_VERSIONING_MASK (ECRYPTFS_VERSIONING_PASSPHRASE \ | 51 | #define ECRYPTFS_VERSIONING_MASK (ECRYPTFS_VERSIONING_PASSPHRASE \ |
51 | | ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH \ | 52 | | ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH \ |
52 | | ECRYPTFS_VERSIONING_PUBKEY) | 53 | | ECRYPTFS_VERSIONING_PUBKEY) |
53 | 54 | ||
54 | #define ECRYPTFS_MAX_PASSWORD_LENGTH 64 | 55 | #define ECRYPTFS_MAX_PASSWORD_LENGTH 64 |
55 | #define ECRYPTFS_MAX_PASSPHRASE_BYTES ECRYPTFS_MAX_PASSWORD_LENGTH | 56 | #define ECRYPTFS_MAX_PASSPHRASE_BYTES ECRYPTFS_MAX_PASSWORD_LENGTH |
@@ -227,6 +228,8 @@ struct ecryptfs_crypt_stat { | |||
227 | #define ECRYPTFS_ENABLE_HMAC 0x00000020 | 228 | #define ECRYPTFS_ENABLE_HMAC 0x00000020 |
228 | #define ECRYPTFS_ENCRYPT_IV_PAGES 0x00000040 | 229 | #define ECRYPTFS_ENCRYPT_IV_PAGES 0x00000040 |
229 | #define ECRYPTFS_KEY_VALID 0x00000080 | 230 | #define ECRYPTFS_KEY_VALID 0x00000080 |
231 | #define ECRYPTFS_METADATA_IN_XATTR 0x00000100 | ||
232 | #define ECRYPTFS_VIEW_AS_ENCRYPTED 0x00000200 | ||
230 | u32 flags; | 233 | u32 flags; |
231 | unsigned int file_version; | 234 | unsigned int file_version; |
232 | size_t iv_bytes; | 235 | size_t iv_bytes; |
@@ -273,6 +276,8 @@ struct ecryptfs_dentry_info { | |||
273 | struct ecryptfs_mount_crypt_stat { | 276 | struct ecryptfs_mount_crypt_stat { |
274 | /* Pointers to memory we do not own, do not free these */ | 277 | /* Pointers to memory we do not own, do not free these */ |
275 | #define ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED 0x00000001 | 278 | #define ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED 0x00000001 |
279 | #define ECRYPTFS_XATTR_METADATA_ENABLED 0x00000002 | ||
280 | #define ECRYPTFS_ENCRYPTED_VIEW_ENABLED 0x00000004 | ||
276 | u32 flags; | 281 | u32 flags; |
277 | struct ecryptfs_auth_tok *global_auth_tok; | 282 | struct ecryptfs_auth_tok *global_auth_tok; |
278 | struct key *global_auth_tok_key; | 283 | struct key *global_auth_tok_key; |