Searched refs:mount_crypt_stat (Results 1 – 7 of 7) sorted by relevance
/fs/ecryptfs/ |
D | main.c | 201 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_global_auth_toks() argument 208 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_init_global_auth_toks() 229 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_mount_crypt_stat() argument 231 memset((void *)mount_crypt_stat, 0, in ecryptfs_init_mount_crypt_stat() 233 INIT_LIST_HEAD(&mount_crypt_stat->global_auth_tok_list); in ecryptfs_init_mount_crypt_stat() 234 mutex_init(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_init_mount_crypt_stat() 235 mount_crypt_stat->flags |= ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED; in ecryptfs_init_mount_crypt_stat() 270 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_parse_options() local 271 &sbi->mount_crypt_stat; in ecryptfs_parse_options() 291 ecryptfs_init_mount_crypt_stat(mount_crypt_stat); in ecryptfs_parse_options() [all …]
|
D | super.c | 118 &ecryptfs_superblock_to_private(dentry->d_sb)->mount_crypt_stat); in ecryptfs_statfs() 149 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_show_options() local 150 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_show_options() 153 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_show_options() 155 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_show_options() 162 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_show_options() 165 mount_crypt_stat->global_default_cipher_name); in ecryptfs_show_options() 167 if (mount_crypt_stat->global_default_cipher_key_size) in ecryptfs_show_options() 169 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_show_options() 170 if (mount_crypt_stat->flags & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED) in ecryptfs_show_options() [all …]
|
D | crypto.c | 258 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_destroy_mount_crypt_stat() argument 262 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat() 264 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat() 266 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat() 274 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat() 275 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat() 920 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument 922 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags() 924 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags() 926 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags() [all …]
|
D | file.c | 149 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in read_or_initialize_metadata() local 154 mount_crypt_stat = &ecryptfs_superblock_to_private( in read_or_initialize_metadata() 155 inode->i_sb)->mount_crypt_stat; in read_or_initialize_metadata() 168 if (mount_crypt_stat->flags & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED) { in read_or_initialize_metadata() 175 if (!(mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) && in read_or_initialize_metadata() 214 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_open() local 220 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_open() 221 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_open() 222 if ((mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_open()
|
D | keystore.c | 494 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig) in ecryptfs_find_global_auth_tok_for_sig() argument 501 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig() 503 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_find_global_auth_tok_for_sig() 540 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig() 563 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_find_auth_tok_for_sig() argument 569 mount_crypt_stat, sig); in ecryptfs_find_auth_tok_for_sig() 576 if (mount_crypt_stat->flags in ecryptfs_find_auth_tok_for_sig() 626 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_write_tag_70_packet() argument 644 &s->auth_tok, mount_crypt_stat, in ecryptfs_write_tag_70_packet() 645 mount_crypt_stat->global_default_fnek_sig); in ecryptfs_write_tag_70_packet() [all …]
|
D | inode.c | 408 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = NULL; in ecryptfs_lookup() local 427 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_lookup() 428 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_lookup() 429 if (!(mount_crypt_stat in ecryptfs_lookup() 430 && (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES))) in ecryptfs_lookup() 435 NULL, mount_crypt_stat, ecryptfs_dentry->d_name.name, in ecryptfs_lookup() 509 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = NULL; in ecryptfs_symlink() local 514 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_symlink() 515 dir->i_sb)->mount_crypt_stat; in ecryptfs_symlink() 519 mount_crypt_stat, symname, in ecryptfs_symlink() [all …]
|
D | ecryptfs_kernel.h | 236 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; member 350 struct ecryptfs_mount_crypt_stat mount_crypt_stat; member 585 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 596 struct ecryptfs_mount_crypt_stat *mount_crypt_stat); 663 ecryptfs_add_global_auth_tok(struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 667 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig); 720 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 725 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 728 struct ecryptfs_mount_crypt_stat *mount_crypt_stat);
|