Searched refs:mount_crypt_stat (Results 1 – 7 of 7) sorted by relevance
/linux-4.4.14/fs/ecryptfs/ |
D | main.c | 200 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_global_auth_toks() argument 207 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_init_global_auth_toks() 228 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_mount_crypt_stat() argument 230 memset((void *)mount_crypt_stat, 0, in ecryptfs_init_mount_crypt_stat() 232 INIT_LIST_HEAD(&mount_crypt_stat->global_auth_tok_list); in ecryptfs_init_mount_crypt_stat() 233 mutex_init(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_init_mount_crypt_stat() 234 mount_crypt_stat->flags |= ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED; in ecryptfs_init_mount_crypt_stat() 269 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_parse_options() local 270 &sbi->mount_crypt_stat; in ecryptfs_parse_options() 290 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 | 250 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_destroy_mount_crypt_stat() argument 254 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat() 256 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat() 258 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat() 265 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat() 266 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat() 734 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument 736 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags() 738 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags() 740 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags() [all …]
|
D | keystore.c | 493 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig) in ecryptfs_find_global_auth_tok_for_sig() argument 500 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig() 502 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_find_global_auth_tok_for_sig() 539 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig() 562 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_find_auth_tok_for_sig() argument 568 mount_crypt_stat, sig); in ecryptfs_find_auth_tok_for_sig() 575 if (mount_crypt_stat->flags in ecryptfs_find_auth_tok_for_sig() 625 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_write_tag_70_packet() argument 643 &s->auth_tok, mount_crypt_stat, in ecryptfs_write_tag_70_packet() 644 mount_crypt_stat->global_default_fnek_sig); in ecryptfs_write_tag_70_packet() [all …]
|
D | inode.c | 397 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = NULL; in ecryptfs_lookup() local 416 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_lookup() 417 ecryptfs_dentry->d_sb)->mount_crypt_stat; in ecryptfs_lookup() 418 if (!(mount_crypt_stat in ecryptfs_lookup() 419 && (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES))) in ecryptfs_lookup() 424 NULL, mount_crypt_stat, ecryptfs_dentry->d_name.name, in ecryptfs_lookup() 498 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = NULL; in ecryptfs_symlink() local 503 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_symlink() 504 dir->i_sb)->mount_crypt_stat; in ecryptfs_symlink() 508 mount_crypt_stat, symname, in ecryptfs_symlink() [all …]
|
D | ecryptfs_kernel.h | 235 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; member 352 struct ecryptfs_mount_crypt_stat mount_crypt_stat; member 573 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 584 struct ecryptfs_mount_crypt_stat *mount_crypt_stat); 651 ecryptfs_add_global_auth_tok(struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 655 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig); 708 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 713 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, 716 struct ecryptfs_mount_crypt_stat *mount_crypt_stat);
|
D | file.c | 134 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in read_or_initialize_metadata() local 139 mount_crypt_stat = &ecryptfs_superblock_to_private( in read_or_initialize_metadata() 140 inode->i_sb)->mount_crypt_stat; in read_or_initialize_metadata() 153 if (mount_crypt_stat->flags & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED) { in read_or_initialize_metadata() 160 if (!(mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) && in read_or_initialize_metadata()
|