diff options
Diffstat (limited to 'fs/ecryptfs/ecryptfs_kernel.h')
-rw-r--r-- | fs/ecryptfs/ecryptfs_kernel.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h index c15c25745e05..b73fb752c5f8 100644 --- a/fs/ecryptfs/ecryptfs_kernel.h +++ b/fs/ecryptfs/ecryptfs_kernel.h | |||
@@ -559,10 +559,25 @@ extern struct kmem_cache *ecryptfs_key_record_cache; | |||
559 | extern struct kmem_cache *ecryptfs_key_sig_cache; | 559 | extern struct kmem_cache *ecryptfs_key_sig_cache; |
560 | extern struct kmem_cache *ecryptfs_global_auth_tok_cache; | 560 | extern struct kmem_cache *ecryptfs_global_auth_tok_cache; |
561 | extern struct kmem_cache *ecryptfs_key_tfm_cache; | 561 | extern struct kmem_cache *ecryptfs_key_tfm_cache; |
562 | extern struct kmem_cache *ecryptfs_open_req_cache; | ||
562 | 563 | ||
564 | struct ecryptfs_open_req { | ||
565 | #define ECRYPTFS_REQ_PROCESSED 0x00000001 | ||
566 | #define ECRYPTFS_REQ_DROPPED 0x00000002 | ||
567 | #define ECRYPTFS_REQ_ZOMBIE 0x00000004 | ||
568 | u32 flags; | ||
569 | struct file **lower_file; | ||
570 | struct dentry *lower_dentry; | ||
571 | struct vfsmount *lower_mnt; | ||
572 | wait_queue_head_t wait; | ||
573 | struct mutex mux; | ||
574 | struct list_head kthread_ctl_list; | ||
575 | }; | ||
576 | |||
577 | #define ECRYPTFS_INTERPOSE_FLAG_D_ADD 0x00000001 | ||
563 | int ecryptfs_interpose(struct dentry *hidden_dentry, | 578 | int ecryptfs_interpose(struct dentry *hidden_dentry, |
564 | struct dentry *this_dentry, struct super_block *sb, | 579 | struct dentry *this_dentry, struct super_block *sb, |
565 | int flag); | 580 | u32 flags); |
566 | int ecryptfs_fill_zeros(struct file *file, loff_t new_length); | 581 | int ecryptfs_fill_zeros(struct file *file, loff_t new_length); |
567 | int ecryptfs_decode_filename(struct ecryptfs_crypt_stat *crypt_stat, | 582 | int ecryptfs_decode_filename(struct ecryptfs_crypt_stat *crypt_stat, |
568 | const char *name, int length, | 583 | const char *name, int length, |
@@ -690,5 +705,11 @@ void ecryptfs_msg_ctx_alloc_to_free(struct ecryptfs_msg_ctx *msg_ctx); | |||
690 | int | 705 | int |
691 | ecryptfs_spawn_daemon(struct ecryptfs_daemon **daemon, uid_t euid, | 706 | ecryptfs_spawn_daemon(struct ecryptfs_daemon **daemon, uid_t euid, |
692 | struct user_namespace *user_ns, struct pid *pid); | 707 | struct user_namespace *user_ns, struct pid *pid); |
708 | int ecryptfs_init_kthread(void); | ||
709 | void ecryptfs_destroy_kthread(void); | ||
710 | int ecryptfs_privileged_open(struct file **lower_file, | ||
711 | struct dentry *lower_dentry, | ||
712 | struct vfsmount *lower_mnt); | ||
713 | int ecryptfs_init_persistent_file(struct dentry *ecryptfs_dentry); | ||
693 | 714 | ||
694 | #endif /* #ifndef ECRYPTFS_KERNEL_H */ | 715 | #endif /* #ifndef ECRYPTFS_KERNEL_H */ |