234
234
struct ecryptfs_key_sig {
235
235
struct list_head crypt_stat_list;
236
char keysig[ECRYPTFS_SIG_SIZE_HEX];
236
char keysig[ECRYPTFS_SIG_SIZE_HEX + 1];
239
239
struct ecryptfs_filename {
257
257
struct ecryptfs_crypt_stat {
258
258
#define ECRYPTFS_STRUCT_INITIALIZED 0x00000001
259
259
#define ECRYPTFS_POLICY_APPLIED 0x00000002
260
#define ECRYPTFS_NEW_FILE 0x00000004
261
#define ECRYPTFS_ENCRYPTED 0x00000008
262
#define ECRYPTFS_SECURITY_WARNING 0x00000010
263
#define ECRYPTFS_ENABLE_HMAC 0x00000020
264
#define ECRYPTFS_ENCRYPT_IV_PAGES 0x00000040
265
#define ECRYPTFS_KEY_VALID 0x00000080
266
#define ECRYPTFS_METADATA_IN_XATTR 0x00000100
267
#define ECRYPTFS_VIEW_AS_ENCRYPTED 0x00000200
268
#define ECRYPTFS_KEY_SET 0x00000400
269
#define ECRYPTFS_ENCRYPT_FILENAMES 0x00000800
270
#define ECRYPTFS_ENCFN_USE_MOUNT_FNEK 0x00001000
271
#define ECRYPTFS_ENCFN_USE_FEK 0x00002000
272
#define ECRYPTFS_UNLINK_SIGS 0x00004000
260
#define ECRYPTFS_ENCRYPTED 0x00000004
261
#define ECRYPTFS_SECURITY_WARNING 0x00000008
262
#define ECRYPTFS_ENABLE_HMAC 0x00000010
263
#define ECRYPTFS_ENCRYPT_IV_PAGES 0x00000020
264
#define ECRYPTFS_KEY_VALID 0x00000040
265
#define ECRYPTFS_METADATA_IN_XATTR 0x00000080
266
#define ECRYPTFS_VIEW_AS_ENCRYPTED 0x00000100
267
#define ECRYPTFS_KEY_SET 0x00000200
268
#define ECRYPTFS_ENCRYPT_FILENAMES 0x00000400
269
#define ECRYPTFS_ENCFN_USE_MOUNT_FNEK 0x00000800
270
#define ECRYPTFS_ENCFN_USE_FEK 0x00001000
271
#define ECRYPTFS_UNLINK_SIGS 0x00002000
272
#define ECRYPTFS_I_SIZE_INITIALIZED 0x00004000
274
274
unsigned int file_version;
296
296
struct ecryptfs_inode_info {
297
297
struct inode vfs_inode;
298
298
struct inode *wii_inode;
299
struct mutex lower_file_mutex;
300
atomic_t lower_file_count;
299
301
struct file *lower_file;
300
struct mutex lower_file_mutex;
301
302
struct ecryptfs_crypt_stat crypt_stat;
381
381
struct list_head global_auth_tok_list;
382
382
struct mutex global_auth_tok_list_mutex;
383
size_t num_global_auth_toks;
384
383
size_t global_default_cipher_key_size;
385
384
size_t global_default_fn_cipher_key_bytes;
386
385
unsigned char global_default_cipher_name[ECRYPTFS_MAX_CIPHER_NAME_SIZE
630
629
int ecryptfs_interpose(struct dentry *hidden_dentry,
631
630
struct dentry *this_dentry, struct super_block *sb,
632
void ecryptfs_i_size_init(const char *page_virt, struct inode *inode);
633
633
int ecryptfs_lookup_and_interpose_lower(struct dentry *ecryptfs_dentry,
634
634
struct dentry *lower_dentry,
635
635
struct inode *ecryptfs_dir_inode);
761
761
struct dentry *lower_dentry,
762
762
struct vfsmount *lower_mnt,
763
763
const struct cred *cred);
764
int ecryptfs_init_persistent_file(struct dentry *ecryptfs_dentry);
764
int ecryptfs_get_lower_file(struct dentry *ecryptfs_dentry);
765
void ecryptfs_put_lower_file(struct inode *inode);
766
767
ecryptfs_write_tag_70_packet(char *dest, size_t *remaining_bytes,
767
768
size_t *packet_size,