Searched refs:mount_crypt_stat (Results 1 – 7 of 7) sorted by relevance
| /Linux-v4.19/fs/ecryptfs/ |
| D | main.c | 199 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_global_auth_toks() argument 206 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_init_global_auth_toks() 227 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_mount_crypt_stat() argument 229 memset((void *)mount_crypt_stat, 0, in ecryptfs_init_mount_crypt_stat() 231 INIT_LIST_HEAD(&mount_crypt_stat->global_auth_tok_list); in ecryptfs_init_mount_crypt_stat() 232 mutex_init(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_init_mount_crypt_stat() 233 mount_crypt_stat->flags |= ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED; in ecryptfs_init_mount_crypt_stat() 268 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_parse_options() local 269 &sbi->mount_crypt_stat; in ecryptfs_parse_options() 289 ecryptfs_init_mount_crypt_stat(mount_crypt_stat); in ecryptfs_parse_options() [all …]
|
| D | super.c | 120 &ecryptfs_superblock_to_private(dentry->d_sb)->mount_crypt_stat); in ecryptfs_statfs() 151 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_show_options() local 152 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_show_options() 155 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_show_options() 157 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_show_options() 164 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_show_options() 167 mount_crypt_stat->global_default_cipher_name); in ecryptfs_show_options() 169 if (mount_crypt_stat->global_default_cipher_key_size) in ecryptfs_show_options() 171 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_show_options() 172 if (mount_crypt_stat->flags & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED) in ecryptfs_show_options() [all …]
|
| D | crypto.c | 229 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_destroy_mount_crypt_stat() argument 233 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat() 235 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat() 237 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat() 244 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat() 245 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat() 713 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument 715 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags() 717 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags() 719 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags() [all …]
|
| D | keystore.c | 501 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig) in ecryptfs_find_global_auth_tok_for_sig() argument 508 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig() 510 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_find_global_auth_tok_for_sig() 547 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig() 570 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_find_auth_tok_for_sig() argument 576 mount_crypt_stat, sig); in ecryptfs_find_auth_tok_for_sig() 583 if (mount_crypt_stat->flags in ecryptfs_find_auth_tok_for_sig() 634 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_write_tag_70_packet() argument 648 &s->auth_tok, mount_crypt_stat, in ecryptfs_write_tag_70_packet() 649 mount_crypt_stat->global_default_fnek_sig); in ecryptfs_write_tag_70_packet() [all …]
|
| D | inode.c | 386 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_lookup() local 395 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_lookup() 396 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_lookup() 397 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_lookup() 400 mount_crypt_stat, name, len); in ecryptfs_lookup() 470 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = NULL; in ecryptfs_symlink() local 475 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_symlink() 476 dir->i_sb)->mount_crypt_stat; in ecryptfs_symlink() 479 mount_crypt_stat, symname, in ecryptfs_symlink() 893 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_setattr() local [all …]
|
| D | ecryptfs_kernel.h | 252 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; member 368 struct ecryptfs_mount_crypt_stat mount_crypt_stat; member 587 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 598 struct ecryptfs_mount_crypt_stat *mount_crypt_stat); 665 ecryptfs_add_global_auth_tok(struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 669 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig); 722 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 727 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 730 struct ecryptfs_mount_crypt_stat *mount_crypt_stat);
|
| D | file.c | 144 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in read_or_initialize_metadata() local 149 mount_crypt_stat = &ecryptfs_superblock_to_private( in read_or_initialize_metadata() 150 inode->i_sb)->mount_crypt_stat; in read_or_initialize_metadata() 163 if (mount_crypt_stat->flags & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED) { in read_or_initialize_metadata() 170 if (!(mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) && in read_or_initialize_metadata()
|