Home
last modified time | relevance | path

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

/linux/fs/ecryptfs/
H A Dmain.c184 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_global_auth_toks() argument
191 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_init_global_auth_toks()
212 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_mount_crypt_stat() argument
214 memset((void *)mount_crypt_stat, 0, in ecryptfs_init_mount_crypt_stat()
216 INIT_LIST_HEAD(&mount_crypt_stat->global_auth_tok_list); in ecryptfs_init_mount_crypt_stat()
217 mutex_init(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_init_mount_crypt_stat()
218 mount_crypt_stat->flags |= ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED; in ecryptfs_init_mount_crypt_stat()
251 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_parse_param() local
252 &sbi->mount_crypt_stat; in ecryptfs_parse_param()
261 rc = ecryptfs_add_global_auth_tok(mount_crypt_stat, in ecryptfs_parse_param()
[all …]
H A Dsuper.c101 &ecryptfs_superblock_to_private(dentry->d_sb)->mount_crypt_stat); in ecryptfs_statfs()
132 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_show_options() local
133 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_show_options()
136 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_show_options()
138 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_show_options()
145 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_show_options()
148 mount_crypt_stat->global_default_cipher_name); in ecryptfs_show_options()
150 if (mount_crypt_stat->global_default_cipher_key_size) in ecryptfs_show_options()
152 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_show_options()
153 if (mount_crypt_stat->flags & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED) in ecryptfs_show_options()
[all …]
H A Dcrypto.c146 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_destroy_mount_crypt_stat() argument
150 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat()
152 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
154 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat()
161 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
162 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat()
589 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
591 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
593 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
595 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags()
[all …]
H A Dkeystore.c488 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig) in ecryptfs_find_global_auth_tok_for_sig() argument
495 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig()
497 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_find_global_auth_tok_for_sig()
534 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig()
558 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_find_auth_tok_for_sig() argument
564 mount_crypt_stat, sig); in ecryptfs_find_auth_tok_for_sig()
571 if (mount_crypt_stat->flags in ecryptfs_find_auth_tok_for_sig()
619 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_write_tag_70_packet() argument
633 &s->auth_tok, mount_crypt_stat, in ecryptfs_write_tag_70_packet()
634 mount_crypt_stat->global_default_fnek_sig); in ecryptfs_write_tag_70_packet()
[all …]
H A Decryptfs_kernel.h235 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; member
340 struct ecryptfs_mount_crypt_stat mount_crypt_stat; member
549 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
559 struct ecryptfs_mount_crypt_stat *mount_crypt_stat);
626 ecryptfs_add_global_auth_tok(struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
630 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig);
682 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
687 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
690 struct ecryptfs_mount_crypt_stat *mount_crypt_stat);
H A Dfile.c147 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in read_or_initialize_metadata() local
152 mount_crypt_stat = &ecryptfs_superblock_to_private( in read_or_initialize_metadata()
153 inode->i_sb)->mount_crypt_stat; in read_or_initialize_metadata()
166 if (mount_crypt_stat->flags & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED) { in read_or_initialize_metadata()
173 if (!(mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) && in read_or_initialize_metadata()