Home
last modified time | relevance | path

Searched refs:mount_crypt_stat (Results 1 – 7 of 7) sorted by relevance

/fs/ecryptfs/
Dmain.c229 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_global_auth_toks() argument
235 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_init_global_auth_toks()
255 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_mount_crypt_stat() argument
257 memset((void *)mount_crypt_stat, 0, in ecryptfs_init_mount_crypt_stat()
259 INIT_LIST_HEAD(&mount_crypt_stat->global_auth_tok_list); in ecryptfs_init_mount_crypt_stat()
260 mutex_init(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_init_mount_crypt_stat()
261 mount_crypt_stat->flags |= ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED; in ecryptfs_init_mount_crypt_stat()
294 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_parse_options() local
295 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_parse_options()
312 ecryptfs_init_mount_crypt_stat(mount_crypt_stat); in ecryptfs_parse_options()
[all …]
Dsuper.c123 ecryptfs_destroy_mount_crypt_stat(&sb_info->mount_crypt_stat); in ecryptfs_put_super()
165 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_show_options() local
166 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_show_options()
169 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_show_options()
171 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_show_options()
175 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_show_options()
178 mount_crypt_stat->global_default_cipher_name); in ecryptfs_show_options()
180 if (mount_crypt_stat->global_default_cipher_key_size) in ecryptfs_show_options()
182 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_show_options()
183 if (mount_crypt_stat->flags & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED) in ecryptfs_show_options()
[all …]
Dcrypto.c259 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_destroy_mount_crypt_stat() argument
263 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat()
265 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
267 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat()
270 mount_crypt_stat->num_global_auth_toks--; in ecryptfs_destroy_mount_crypt_stat()
276 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
277 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat()
921 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
923 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
925 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
[all …]
Dkeystore.c408 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig) in ecryptfs_find_global_auth_tok_for_sig() argument
414 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig()
416 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_find_global_auth_tok_for_sig()
425 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig()
447 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_find_auth_tok_for_sig() argument
455 mount_crypt_stat, sig)) { in ecryptfs_find_auth_tok_for_sig()
505 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_write_tag_70_packet() argument
521 &s->tfm_mutex, mount_crypt_stat->global_default_fn_cipher_name); in ecryptfs_write_tag_70_packet()
525 mount_crypt_stat->global_default_fn_cipher_name, rc); in ecryptfs_write_tag_70_packet()
589 mount_crypt_stat->global_default_fnek_sig, in ecryptfs_write_tag_70_packet()
[all …]
Dinode.c255 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_lookup_and_interpose_lower() local
333 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_lookup_and_interpose_lower()
334 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_lookup_and_interpose_lower()
335 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) { in ecryptfs_lookup_and_interpose_lower()
370 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = NULL; in ecryptfs_lookup() local
394 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_lookup()
395 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_lookup()
396 if (!(mount_crypt_stat in ecryptfs_lookup()
397 && (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES))) in ecryptfs_lookup()
402 NULL, mount_crypt_stat, ecryptfs_dentry->d_name.name, in ecryptfs_lookup()
[all …]
Dfile.c157 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_open() local
164 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_open()
165 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_open()
166 if ((mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_open()
228 if (!(mount_crypt_stat->flags in ecryptfs_open()
Decryptfs_kernel.h280 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; member
394 struct ecryptfs_mount_crypt_stat mount_crypt_stat; member
634 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
645 struct ecryptfs_mount_crypt_stat *mount_crypt_stat);
698 ecryptfs_add_global_auth_tok(struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
702 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig);
755 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
760 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,