Lines Matching refs:mount_crypt_stat
184 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()
272 strscpy(mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_param()
277 mount_crypt_stat->global_default_cipher_key_size = in ecryptfs_parse_param()
282 mount_crypt_stat->flags |= in ecryptfs_parse_param()
286 mount_crypt_stat->flags |= ECRYPTFS_XATTR_METADATA_ENABLED; in ecryptfs_parse_param()
289 mount_crypt_stat->flags |= ECRYPTFS_XATTR_METADATA_ENABLED; in ecryptfs_parse_param()
290 mount_crypt_stat->flags |= ECRYPTFS_ENCRYPTED_VIEW_ENABLED; in ecryptfs_parse_param()
293 strscpy(mount_crypt_stat->global_default_fnek_sig, in ecryptfs_parse_param()
296 mount_crypt_stat, in ecryptfs_parse_param()
297 mount_crypt_stat->global_default_fnek_sig, in ecryptfs_parse_param()
302 mount_crypt_stat->global_default_fnek_sig, rc); in ecryptfs_parse_param()
305 mount_crypt_stat->flags |= in ecryptfs_parse_param()
310 strscpy(mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_param()
315 mount_crypt_stat->global_default_fn_cipher_key_bytes = in ecryptfs_parse_param()
320 mount_crypt_stat->flags |= ECRYPTFS_UNLINK_SIGS; in ecryptfs_parse_param()
323 mount_crypt_stat->flags |= ECRYPTFS_GLOBAL_MOUNT_AUTH_TOK_ONLY; in ecryptfs_parse_param()
341 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_validate_options() local
344 mount_crypt_stat = &sbi->mount_crypt_stat; in ecryptfs_validate_options()
357 strcpy(mount_crypt_stat->global_default_cipher_name, in ecryptfs_validate_options()
360 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_validate_options()
362 strcpy(mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_validate_options()
363 mount_crypt_stat->global_default_cipher_name); in ecryptfs_validate_options()
365 mount_crypt_stat->global_default_cipher_key_size = 0; in ecryptfs_validate_options()
366 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_validate_options()
368 mount_crypt_stat->global_default_fn_cipher_key_bytes = in ecryptfs_validate_options()
369 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_validate_options()
372 mount_crypt_stat->global_default_cipher_name, in ecryptfs_validate_options()
373 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_validate_options()
377 mount_crypt_stat->global_default_cipher_name); in ecryptfs_validate_options()
383 if (!ecryptfs_tfm_exists(mount_crypt_stat->global_default_cipher_name, in ecryptfs_validate_options()
386 NULL, mount_crypt_stat->global_default_cipher_name, in ecryptfs_validate_options()
387 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_validate_options()
392 mount_crypt_stat->global_default_cipher_name, in ecryptfs_validate_options()
393 mount_crypt_stat->global_default_cipher_key_size, in ecryptfs_validate_options()
400 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_validate_options()
402 mount_crypt_stat->global_default_fn_cipher_name, NULL)) { in ecryptfs_validate_options()
404 NULL, mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_validate_options()
405 mount_crypt_stat->global_default_fn_cipher_key_bytes); in ecryptfs_validate_options()
410 mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_validate_options()
411 mount_crypt_stat->global_default_fn_cipher_key_bytes, in ecryptfs_validate_options()
419 rc = ecryptfs_init_global_auth_toks(mount_crypt_stat); in ecryptfs_validate_options()
439 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_get_tree() local
452 mount_crypt_stat = &sbi->mount_crypt_stat; in ecryptfs_get_tree()
521 if (sb_rdonly(path.dentry->d_sb) || mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_get_tree()
565 ecryptfs_destroy_mount_crypt_stat(&sbi->mount_crypt_stat); in ecryptfs_get_tree()
583 ecryptfs_destroy_mount_crypt_stat(&sb_info->mount_crypt_stat); in ecryptfs_kill_block_super()
595 ecryptfs_destroy_mount_crypt_stat(&sbi->mount_crypt_stat); in ecryptfs_free_fc()
622 ecryptfs_init_mount_crypt_stat(&sbi->mount_crypt_stat); in ecryptfs_init_fs_context()