Home
last modified time | relevance | path

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

/linux-5.19.10/fs/ecryptfs/
Dmain.c185 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_global_auth_toks() argument
192 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_init_global_auth_toks()
213 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_mount_crypt_stat() argument
215 memset((void *)mount_crypt_stat, 0, in ecryptfs_init_mount_crypt_stat()
217 INIT_LIST_HEAD(&mount_crypt_stat->global_auth_tok_list); in ecryptfs_init_mount_crypt_stat()
218 mutex_init(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_init_mount_crypt_stat()
219 mount_crypt_stat->flags |= ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED; in ecryptfs_init_mount_crypt_stat()
254 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_parse_options() local
255 &sbi->mount_crypt_stat; in ecryptfs_parse_options()
275 ecryptfs_init_mount_crypt_stat(mount_crypt_stat); in ecryptfs_parse_options()
[all …]
Dsuper.c104 &ecryptfs_superblock_to_private(dentry->d_sb)->mount_crypt_stat); in ecryptfs_statfs()
135 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_show_options() local
136 &ecryptfs_superblock_to_private(sb)->mount_crypt_stat; in ecryptfs_show_options()
139 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_show_options()
141 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_show_options()
148 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_show_options()
151 mount_crypt_stat->global_default_cipher_name); in ecryptfs_show_options()
153 if (mount_crypt_stat->global_default_cipher_key_size) in ecryptfs_show_options()
155 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_show_options()
156 if (mount_crypt_stat->flags & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED) in ecryptfs_show_options()
[all …]
Dcrypto.c200 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_destroy_mount_crypt_stat() argument
204 if (!(mount_crypt_stat->flags & ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED)) in ecryptfs_destroy_mount_crypt_stat()
206 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
208 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_destroy_mount_crypt_stat()
215 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_destroy_mount_crypt_stat()
216 memset(mount_crypt_stat, 0, sizeof(struct ecryptfs_mount_crypt_stat)); in ecryptfs_destroy_mount_crypt_stat()
682 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_copy_mount_wide_flags_to_inode_flags() argument
684 if (mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
686 if (mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_copy_mount_wide_flags_to_inode_flags()
688 if (mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_copy_mount_wide_flags_to_inode_flags()
[all …]
Dkeystore.c487 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig) in ecryptfs_find_global_auth_tok_for_sig() argument
494 mutex_lock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig()
496 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_find_global_auth_tok_for_sig()
533 mutex_unlock(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_find_global_auth_tok_for_sig()
557 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_find_auth_tok_for_sig() argument
563 mount_crypt_stat, sig); in ecryptfs_find_auth_tok_for_sig()
570 if (mount_crypt_stat->flags in ecryptfs_find_auth_tok_for_sig()
621 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, in ecryptfs_write_tag_70_packet() argument
635 &s->auth_tok, mount_crypt_stat, in ecryptfs_write_tag_70_packet()
636 mount_crypt_stat->global_default_fnek_sig); in ecryptfs_write_tag_70_packet()
[all …]
Dinode.c385 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; 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->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) { in ecryptfs_lookup()
399 mount_crypt_stat, name, len); in ecryptfs_lookup()
466 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = NULL; in ecryptfs_symlink() local
471 mount_crypt_stat = &ecryptfs_superblock_to_private( in ecryptfs_symlink()
472 dir->i_sb)->mount_crypt_stat; in ecryptfs_symlink()
475 mount_crypt_stat, symname, in ecryptfs_symlink()
910 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_setattr() local
[all …]
Decryptfs_kernel.h238 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; member
351 struct ecryptfs_mount_crypt_stat mount_crypt_stat; member
558 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
569 struct ecryptfs_mount_crypt_stat *mount_crypt_stat);
636 ecryptfs_add_global_auth_tok(struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
640 struct ecryptfs_mount_crypt_stat *mount_crypt_stat, char *sig);
693 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
698 struct ecryptfs_mount_crypt_stat *mount_crypt_stat,
701 struct ecryptfs_mount_crypt_stat *mount_crypt_stat);
Dfile.c130 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in read_or_initialize_metadata() local
135 mount_crypt_stat = &ecryptfs_superblock_to_private( in read_or_initialize_metadata()
136 inode->i_sb)->mount_crypt_stat; in read_or_initialize_metadata()
149 if (mount_crypt_stat->flags & ECRYPTFS_PLAINTEXT_PASSTHROUGH_ENABLED) { in read_or_initialize_metadata()
156 if (!(mount_crypt_stat->flags & ECRYPTFS_XATTR_METADATA_ENABLED) && in read_or_initialize_metadata()