diff options
Diffstat (limited to 'fs/ecryptfs/ecryptfs_kernel.h')
-rw-r--r-- | fs/ecryptfs/ecryptfs_kernel.h | 160 |
1 files changed, 128 insertions, 32 deletions
diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h index 0f897109759b..b3609b7cdf11 100644 --- a/fs/ecryptfs/ecryptfs_kernel.h +++ b/fs/ecryptfs/ecryptfs_kernel.h | |||
@@ -4,8 +4,10 @@ | |||
4 | * | 4 | * |
5 | * Copyright (C) 1997-2003 Erez Zadok | 5 | * Copyright (C) 1997-2003 Erez Zadok |
6 | * Copyright (C) 2001-2003 Stony Brook University | 6 | * Copyright (C) 2001-2003 Stony Brook University |
7 | * Copyright (C) 2004-2006 International Business Machines Corp. | 7 | * Copyright (C) 2004-2007 International Business Machines Corp. |
8 | * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com> | 8 | * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com> |
9 | * Trevor S. Highland <trevor.highland@gmail.com> | ||
10 | * Tyler Hicks <tyhicks@ou.edu> | ||
9 | * | 11 | * |
10 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
11 | * modify it under the terms of the GNU General Public License as | 13 | * modify it under the terms of the GNU General Public License as |
@@ -31,22 +33,25 @@ | |||
31 | #include <linux/fs_stack.h> | 33 | #include <linux/fs_stack.h> |
32 | #include <linux/namei.h> | 34 | #include <linux/namei.h> |
33 | #include <linux/scatterlist.h> | 35 | #include <linux/scatterlist.h> |
36 | #include <linux/hash.h> | ||
34 | 37 | ||
35 | /* Version verification for shared data structures w/ userspace */ | 38 | /* Version verification for shared data structures w/ userspace */ |
36 | #define ECRYPTFS_VERSION_MAJOR 0x00 | 39 | #define ECRYPTFS_VERSION_MAJOR 0x00 |
37 | #define ECRYPTFS_VERSION_MINOR 0x04 | 40 | #define ECRYPTFS_VERSION_MINOR 0x04 |
38 | #define ECRYPTFS_SUPPORTED_FILE_VERSION 0x01 | 41 | #define ECRYPTFS_SUPPORTED_FILE_VERSION 0x02 |
39 | /* These flags indicate which features are supported by the kernel | 42 | /* These flags indicate which features are supported by the kernel |
40 | * module; userspace tools such as the mount helper read | 43 | * module; userspace tools such as the mount helper read |
41 | * ECRYPTFS_VERSIONING_MASK from a sysfs handle in order to determine | 44 | * ECRYPTFS_VERSIONING_MASK from a sysfs handle in order to determine |
42 | * how to behave. */ | 45 | * how to behave. */ |
43 | #define ECRYPTFS_VERSIONING_PASSPHRASE 0x00000001 | 46 | #define ECRYPTFS_VERSIONING_PASSPHRASE 0x00000001 |
44 | #define ECRYPTFS_VERSIONING_PUBKEY 0x00000002 | 47 | #define ECRYPTFS_VERSIONING_PUBKEY 0x00000002 |
45 | #define ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH 0x00000004 | 48 | #define ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH 0x00000004 |
46 | #define ECRYPTFS_VERSIONING_POLICY 0x00000008 | 49 | #define ECRYPTFS_VERSIONING_POLICY 0x00000008 |
50 | #define ECRYPTFS_VERSIONING_XATTR 0x00000010 | ||
47 | #define ECRYPTFS_VERSIONING_MASK (ECRYPTFS_VERSIONING_PASSPHRASE \ | 51 | #define ECRYPTFS_VERSIONING_MASK (ECRYPTFS_VERSIONING_PASSPHRASE \ |
48 | | ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH) | 52 | | ECRYPTFS_VERSIONING_PLAINTEXT_PASSTHROUGH \ |
49 | 53 | | ECRYPTFS_VERSIONING_PUBKEY \ | |
54 | | ECRYPTFS_VERSIONING_XATTR) | ||
50 | #define ECRYPTFS_MAX_PASSWORD_LENGTH 64 | 55 | #define ECRYPTFS_MAX_PASSWORD_LENGTH 64 |
51 | #define ECRYPTFS_MAX_PASSPHRASE_BYTES ECRYPTFS_MAX_PASSWORD_LENGTH | 56 | #define ECRYPTFS_MAX_PASSPHRASE_BYTES ECRYPTFS_MAX_PASSWORD_LENGTH |
52 | #define ECRYPTFS_SALT_SIZE 8 | 57 | #define ECRYPTFS_SALT_SIZE 8 |
@@ -60,10 +65,25 @@ | |||
60 | #define ECRYPTFS_MAX_KEY_BYTES 64 | 65 | #define ECRYPTFS_MAX_KEY_BYTES 64 |
61 | #define ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES 512 | 66 | #define ECRYPTFS_MAX_ENCRYPTED_KEY_BYTES 512 |
62 | #define ECRYPTFS_DEFAULT_IV_BYTES 16 | 67 | #define ECRYPTFS_DEFAULT_IV_BYTES 16 |
63 | #define ECRYPTFS_FILE_VERSION 0x01 | 68 | #define ECRYPTFS_FILE_VERSION 0x02 |
64 | #define ECRYPTFS_DEFAULT_HEADER_EXTENT_SIZE 8192 | 69 | #define ECRYPTFS_DEFAULT_HEADER_EXTENT_SIZE 8192 |
65 | #define ECRYPTFS_DEFAULT_EXTENT_SIZE 4096 | 70 | #define ECRYPTFS_DEFAULT_EXTENT_SIZE 4096 |
66 | #define ECRYPTFS_MINIMUM_HEADER_EXTENT_SIZE 8192 | 71 | #define ECRYPTFS_MINIMUM_HEADER_EXTENT_SIZE 8192 |
72 | #define ECRYPTFS_DEFAULT_MSG_CTX_ELEMS 32 | ||
73 | #define ECRYPTFS_DEFAULT_SEND_TIMEOUT HZ | ||
74 | #define ECRYPTFS_MAX_MSG_CTX_TTL (HZ*3) | ||
75 | #define ECRYPTFS_NLMSG_HELO 100 | ||
76 | #define ECRYPTFS_NLMSG_QUIT 101 | ||
77 | #define ECRYPTFS_NLMSG_REQUEST 102 | ||
78 | #define ECRYPTFS_NLMSG_RESPONSE 103 | ||
79 | #define ECRYPTFS_MAX_PKI_NAME_BYTES 16 | ||
80 | #define ECRYPTFS_DEFAULT_NUM_USERS 4 | ||
81 | #define ECRYPTFS_MAX_NUM_USERS 32768 | ||
82 | #define ECRYPTFS_TRANSPORT_NETLINK 0 | ||
83 | #define ECRYPTFS_TRANSPORT_CONNECTOR 1 | ||
84 | #define ECRYPTFS_TRANSPORT_RELAYFS 2 | ||
85 | #define ECRYPTFS_DEFAULT_TRANSPORT ECRYPTFS_TRANSPORT_NETLINK | ||
86 | #define ECRYPTFS_XATTR_NAME "user.ecryptfs" | ||
67 | 87 | ||
68 | #define RFC2440_CIPHER_DES3_EDE 0x02 | 88 | #define RFC2440_CIPHER_DES3_EDE 0x02 |
69 | #define RFC2440_CIPHER_CAST_5 0x03 | 89 | #define RFC2440_CIPHER_CAST_5 0x03 |
@@ -74,9 +94,7 @@ | |||
74 | #define RFC2440_CIPHER_TWOFISH 0x0a | 94 | #define RFC2440_CIPHER_TWOFISH 0x0a |
75 | #define RFC2440_CIPHER_CAST_6 0x0b | 95 | #define RFC2440_CIPHER_CAST_6 0x0b |
76 | 96 | ||
77 | #define ECRYPTFS_SET_FLAG(flag_bit_vector, flag) (flag_bit_vector |= (flag)) | 97 | #define RFC2440_CIPHER_RSA 0x01 |
78 | #define ECRYPTFS_CLEAR_FLAG(flag_bit_vector, flag) (flag_bit_vector &= ~(flag)) | ||
79 | #define ECRYPTFS_CHECK_FLAG(flag_bit_vector, flag) (flag_bit_vector & (flag)) | ||
80 | 98 | ||
81 | /** | 99 | /** |
82 | * For convenience, we may need to pass around the encrypted session | 100 | * For convenience, we may need to pass around the encrypted session |
@@ -114,6 +132,14 @@ struct ecryptfs_password { | |||
114 | 132 | ||
115 | enum ecryptfs_token_types {ECRYPTFS_PASSWORD, ECRYPTFS_PRIVATE_KEY}; | 133 | enum ecryptfs_token_types {ECRYPTFS_PASSWORD, ECRYPTFS_PRIVATE_KEY}; |
116 | 134 | ||
135 | struct ecryptfs_private_key { | ||
136 | u32 key_size; | ||
137 | u32 data_len; | ||
138 | u8 signature[ECRYPTFS_PASSWORD_SIG_SIZE + 1]; | ||
139 | char pki_type[ECRYPTFS_MAX_PKI_NAME_BYTES + 1]; | ||
140 | u8 data[]; | ||
141 | }; | ||
142 | |||
117 | /* May be a password or a private key */ | 143 | /* May be a password or a private key */ |
118 | struct ecryptfs_auth_tok { | 144 | struct ecryptfs_auth_tok { |
119 | u16 version; /* 8-bit major and 8-bit minor */ | 145 | u16 version; /* 8-bit major and 8-bit minor */ |
@@ -123,7 +149,7 @@ struct ecryptfs_auth_tok { | |||
123 | u8 reserved[32]; | 149 | u8 reserved[32]; |
124 | union { | 150 | union { |
125 | struct ecryptfs_password password; | 151 | struct ecryptfs_password password; |
126 | /* Private key is in future eCryptfs releases */ | 152 | struct ecryptfs_private_key private_key; |
127 | } token; | 153 | } token; |
128 | } __attribute__ ((packed)); | 154 | } __attribute__ ((packed)); |
129 | 155 | ||
@@ -177,8 +203,13 @@ ecryptfs_get_key_payload_data(struct key *key) | |||
177 | #define ECRYPTFS_DEFAULT_CIPHER "aes" | 203 | #define ECRYPTFS_DEFAULT_CIPHER "aes" |
178 | #define ECRYPTFS_DEFAULT_KEY_BYTES 16 | 204 | #define ECRYPTFS_DEFAULT_KEY_BYTES 16 |
179 | #define ECRYPTFS_DEFAULT_HASH "md5" | 205 | #define ECRYPTFS_DEFAULT_HASH "md5" |
206 | #define ECRYPTFS_TAG_1_PACKET_TYPE 0x01 | ||
180 | #define ECRYPTFS_TAG_3_PACKET_TYPE 0x8C | 207 | #define ECRYPTFS_TAG_3_PACKET_TYPE 0x8C |
181 | #define ECRYPTFS_TAG_11_PACKET_TYPE 0xED | 208 | #define ECRYPTFS_TAG_11_PACKET_TYPE 0xED |
209 | #define ECRYPTFS_TAG_64_PACKET_TYPE 0x40 | ||
210 | #define ECRYPTFS_TAG_65_PACKET_TYPE 0x41 | ||
211 | #define ECRYPTFS_TAG_66_PACKET_TYPE 0x42 | ||
212 | #define ECRYPTFS_TAG_67_PACKET_TYPE 0x43 | ||
182 | #define MD5_DIGEST_SIZE 16 | 213 | #define MD5_DIGEST_SIZE 16 |
183 | 214 | ||
184 | /** | 215 | /** |
@@ -195,6 +226,8 @@ struct ecryptfs_crypt_stat { | |||
195 | #define ECRYPTFS_ENABLE_HMAC 0x00000020 | 226 | #define ECRYPTFS_ENABLE_HMAC 0x00000020 |
196 | #define ECRYPTFS_ENCRYPT_IV_PAGES 0x00000040 | 227 | #define ECRYPTFS_ENCRYPT_IV_PAGES 0x00000040 |
197 | #define ECRYPTFS_KEY_VALID 0x00000080 | 228 | #define ECRYPTFS_KEY_VALID 0x00000080 |
229 | #define ECRYPTFS_METADATA_IN_XATTR 0x00000100 | ||
230 | #define ECRYPTFS_VIEW_AS_ENCRYPTED 0x00000200 | ||
198 | u32 flags; | 231 | u32 flags; |
199 | unsigned int file_version; | 232 | unsigned int file_version; |
200 | size_t iv_bytes; | 233 | size_t iv_bytes; |
@@ -241,6 +274,8 @@ struct ecryptfs_dentry_info { | |||
241 | struct ecryptfs_mount_crypt_stat { | 274 | struct ecryptfs_mount_crypt_stat { |
242 | /* Pointers to memory we do not own, do not free these */ | 275 | /* Pointers to memory we do not own, do not free these */ |
243 | #define ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED 0x00000001 | 276 | #define ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED 0x00000001 |
277 | #define ECRYPTFS_XATTR_METADATA_ENABLED 0x00000002 | ||
278 | #define ECRYPTFS_ENCRYPTED_VIEW_ENABLED 0x00000004 | ||
244 | u32 flags; | 279 | u32 flags; |
245 | struct ecryptfs_auth_tok *global_auth_tok; | 280 | struct ecryptfs_auth_tok *global_auth_tok; |
246 | struct key *global_auth_tok_key; | 281 | struct key *global_auth_tok_key; |
@@ -271,6 +306,33 @@ struct ecryptfs_auth_tok_list_item { | |||
271 | struct ecryptfs_auth_tok auth_tok; | 306 | struct ecryptfs_auth_tok auth_tok; |
272 | }; | 307 | }; |
273 | 308 | ||
309 | struct ecryptfs_message { | ||
310 | u32 index; | ||
311 | u32 data_len; | ||
312 | u8 data[]; | ||
313 | }; | ||
314 | |||
315 | struct ecryptfs_msg_ctx { | ||
316 | #define ECRYPTFS_MSG_CTX_STATE_FREE 0x0001 | ||
317 | #define ECRYPTFS_MSG_CTX_STATE_PENDING 0x0002 | ||
318 | #define ECRYPTFS_MSG_CTX_STATE_DONE 0x0003 | ||
319 | u32 state; | ||
320 | unsigned int index; | ||
321 | unsigned int counter; | ||
322 | struct ecryptfs_message *msg; | ||
323 | struct task_struct *task; | ||
324 | struct list_head node; | ||
325 | struct mutex mux; | ||
326 | }; | ||
327 | |||
328 | extern unsigned int ecryptfs_transport; | ||
329 | |||
330 | struct ecryptfs_daemon_id { | ||
331 | pid_t pid; | ||
332 | uid_t uid; | ||
333 | struct hlist_node id_chain; | ||
334 | }; | ||
335 | |||
274 | static inline struct ecryptfs_file_info * | 336 | static inline struct ecryptfs_file_info * |
275 | ecryptfs_file_to_private(struct file *file) | 337 | ecryptfs_file_to_private(struct file *file) |
276 | { | 338 | { |
@@ -384,13 +446,16 @@ void __ecryptfs_printk(const char *fmt, ...); | |||
384 | 446 | ||
385 | extern const struct file_operations ecryptfs_main_fops; | 447 | extern const struct file_operations ecryptfs_main_fops; |
386 | extern const struct file_operations ecryptfs_dir_fops; | 448 | extern const struct file_operations ecryptfs_dir_fops; |
387 | extern struct inode_operations ecryptfs_main_iops; | 449 | extern const struct inode_operations ecryptfs_main_iops; |
388 | extern struct inode_operations ecryptfs_dir_iops; | 450 | extern const struct inode_operations ecryptfs_dir_iops; |
389 | extern struct inode_operations ecryptfs_symlink_iops; | 451 | extern const struct inode_operations ecryptfs_symlink_iops; |
390 | extern struct super_operations ecryptfs_sops; | 452 | extern const struct super_operations ecryptfs_sops; |
391 | extern struct dentry_operations ecryptfs_dops; | 453 | extern struct dentry_operations ecryptfs_dops; |
392 | extern struct address_space_operations ecryptfs_aops; | 454 | extern struct address_space_operations ecryptfs_aops; |
393 | extern int ecryptfs_verbosity; | 455 | extern int ecryptfs_verbosity; |
456 | extern unsigned int ecryptfs_message_buf_len; | ||
457 | extern signed long ecryptfs_message_wait_timeout; | ||
458 | extern unsigned int ecryptfs_number_of_users; | ||
394 | 459 | ||
395 | extern struct kmem_cache *ecryptfs_auth_tok_list_item_cache; | 460 | extern struct kmem_cache *ecryptfs_auth_tok_list_item_cache; |
396 | extern struct kmem_cache *ecryptfs_file_info_cache; | 461 | extern struct kmem_cache *ecryptfs_file_info_cache; |
@@ -400,6 +465,7 @@ extern struct kmem_cache *ecryptfs_sb_info_cache; | |||
400 | extern struct kmem_cache *ecryptfs_header_cache_0; | 465 | extern struct kmem_cache *ecryptfs_header_cache_0; |
401 | extern struct kmem_cache *ecryptfs_header_cache_1; | 466 | extern struct kmem_cache *ecryptfs_header_cache_1; |
402 | extern struct kmem_cache *ecryptfs_header_cache_2; | 467 | extern struct kmem_cache *ecryptfs_header_cache_2; |
468 | extern struct kmem_cache *ecryptfs_xattr_cache; | ||
403 | extern struct kmem_cache *ecryptfs_lower_page_cache; | 469 | extern struct kmem_cache *ecryptfs_lower_page_cache; |
404 | 470 | ||
405 | int ecryptfs_interpose(struct dentry *hidden_dentry, | 471 | int ecryptfs_interpose(struct dentry *hidden_dentry, |
@@ -426,9 +492,13 @@ int ecryptfs_init_crypt_ctx(struct ecryptfs_crypt_stat *crypt_stat); | |||
426 | int ecryptfs_crypto_api_algify_cipher_name(char **algified_name, | 492 | int ecryptfs_crypto_api_algify_cipher_name(char **algified_name, |
427 | char *cipher_name, | 493 | char *cipher_name, |
428 | char *chaining_modifier); | 494 | char *chaining_modifier); |
429 | int ecryptfs_write_inode_size_to_header(struct file *lower_file, | 495 | #define ECRYPTFS_LOWER_I_MUTEX_NOT_HELD 0 |
430 | struct inode *lower_inode, | 496 | #define ECRYPTFS_LOWER_I_MUTEX_HELD 1 |
431 | struct inode *inode); | 497 | int ecryptfs_write_inode_size_to_metadata(struct file *lower_file, |
498 | struct inode *lower_inode, | ||
499 | struct inode *inode, | ||
500 | struct dentry *ecryptfs_dentry, | ||
501 | int lower_i_mutex_held); | ||
432 | int ecryptfs_get_lower_page(struct page **lower_page, struct inode *lower_inode, | 502 | int ecryptfs_get_lower_page(struct page **lower_page, struct inode *lower_inode, |
433 | struct file *lower_file, | 503 | struct file *lower_file, |
434 | unsigned long lower_page_index, int byte_offset, | 504 | unsigned long lower_page_index, int byte_offset, |
@@ -441,26 +511,20 @@ int ecryptfs_copy_page_to_lower(struct page *page, struct inode *lower_inode, | |||
441 | struct file *lower_file); | 511 | struct file *lower_file); |
442 | int ecryptfs_do_readpage(struct file *file, struct page *page, | 512 | int ecryptfs_do_readpage(struct file *file, struct page *page, |
443 | pgoff_t lower_page_index); | 513 | pgoff_t lower_page_index); |
444 | int ecryptfs_grab_and_map_lower_page(struct page **lower_page, | ||
445 | char **lower_virt, | ||
446 | struct inode *lower_inode, | ||
447 | unsigned long lower_page_index); | ||
448 | int ecryptfs_writepage_and_release_lower_page(struct page *lower_page, | 514 | int ecryptfs_writepage_and_release_lower_page(struct page *lower_page, |
449 | struct inode *lower_inode, | 515 | struct inode *lower_inode, |
450 | struct writeback_control *wbc); | 516 | struct writeback_control *wbc); |
451 | int ecryptfs_encrypt_page(struct ecryptfs_page_crypt_context *ctx); | 517 | int ecryptfs_encrypt_page(struct ecryptfs_page_crypt_context *ctx); |
452 | int ecryptfs_decrypt_page(struct file *file, struct page *page); | 518 | int ecryptfs_decrypt_page(struct file *file, struct page *page); |
453 | int ecryptfs_write_headers(struct dentry *ecryptfs_dentry, | 519 | int ecryptfs_write_metadata(struct dentry *ecryptfs_dentry, |
520 | struct file *lower_file); | ||
521 | int ecryptfs_read_metadata(struct dentry *ecryptfs_dentry, | ||
454 | struct file *lower_file); | 522 | struct file *lower_file); |
455 | int ecryptfs_write_headers_virt(char *page_virt, | ||
456 | struct ecryptfs_crypt_stat *crypt_stat, | ||
457 | struct dentry *ecryptfs_dentry); | ||
458 | int ecryptfs_read_headers(struct dentry *ecryptfs_dentry, | ||
459 | struct file *lower_file); | ||
460 | int ecryptfs_new_file_context(struct dentry *ecryptfs_dentry); | 523 | int ecryptfs_new_file_context(struct dentry *ecryptfs_dentry); |
461 | int contains_ecryptfs_marker(char *data); | 524 | int ecryptfs_read_and_validate_header_region(char *data, struct dentry *dentry, |
462 | int ecryptfs_read_header_region(char *data, struct dentry *dentry, | 525 | struct vfsmount *mnt); |
463 | struct vfsmount *mnt); | 526 | int ecryptfs_read_and_validate_xattr_region(char *page_virt, |
527 | struct dentry *ecryptfs_dentry); | ||
464 | u16 ecryptfs_code_for_cipher_string(struct ecryptfs_crypt_stat *crypt_stat); | 528 | u16 ecryptfs_code_for_cipher_string(struct ecryptfs_crypt_stat *crypt_stat); |
465 | int ecryptfs_cipher_code_to_string(char *str, u16 cipher_code); | 529 | int ecryptfs_cipher_code_to_string(char *str, u16 cipher_code); |
466 | void ecryptfs_set_default_sizes(struct ecryptfs_crypt_stat *crypt_stat); | 530 | void ecryptfs_set_default_sizes(struct ecryptfs_crypt_stat *crypt_stat); |
@@ -483,5 +547,37 @@ int ecryptfs_open_lower_file(struct file **lower_file, | |||
483 | struct dentry *lower_dentry, | 547 | struct dentry *lower_dentry, |
484 | struct vfsmount *lower_mnt, int flags); | 548 | struct vfsmount *lower_mnt, int flags); |
485 | int ecryptfs_close_lower_file(struct file *lower_file); | 549 | int ecryptfs_close_lower_file(struct file *lower_file); |
550 | ssize_t ecryptfs_getxattr(struct dentry *dentry, const char *name, void *value, | ||
551 | size_t size); | ||
552 | int | ||
553 | ecryptfs_setxattr(struct dentry *dentry, const char *name, const void *value, | ||
554 | size_t size, int flags); | ||
555 | int ecryptfs_read_xattr_region(char *page_virt, struct dentry *ecryptfs_dentry); | ||
556 | int ecryptfs_process_helo(unsigned int transport, uid_t uid, pid_t pid); | ||
557 | int ecryptfs_process_quit(uid_t uid, pid_t pid); | ||
558 | int ecryptfs_process_response(struct ecryptfs_message *msg, uid_t uid, | ||
559 | pid_t pid, u32 seq); | ||
560 | int ecryptfs_send_message(unsigned int transport, char *data, int data_len, | ||
561 | struct ecryptfs_msg_ctx **msg_ctx); | ||
562 | int ecryptfs_wait_for_response(struct ecryptfs_msg_ctx *msg_ctx, | ||
563 | struct ecryptfs_message **emsg); | ||
564 | int ecryptfs_init_messaging(unsigned int transport); | ||
565 | void ecryptfs_release_messaging(unsigned int transport); | ||
566 | |||
567 | int ecryptfs_send_netlink(char *data, int data_len, | ||
568 | struct ecryptfs_msg_ctx *msg_ctx, u16 msg_type, | ||
569 | u16 msg_flags, pid_t daemon_pid); | ||
570 | int ecryptfs_init_netlink(void); | ||
571 | void ecryptfs_release_netlink(void); | ||
572 | |||
573 | int ecryptfs_send_connector(char *data, int data_len, | ||
574 | struct ecryptfs_msg_ctx *msg_ctx, u16 msg_type, | ||
575 | u16 msg_flags, pid_t daemon_pid); | ||
576 | int ecryptfs_init_connector(void); | ||
577 | void ecryptfs_release_connector(void); | ||
578 | void | ||
579 | ecryptfs_write_header_metadata(char *virt, | ||
580 | struct ecryptfs_crypt_stat *crypt_stat, | ||
581 | size_t *written); | ||
486 | 582 | ||
487 | #endif /* #ifndef ECRYPTFS_KERNEL_H */ | 583 | #endif /* #ifndef ECRYPTFS_KERNEL_H */ |