Lines Matching refs:mount_crypt_stat

185 	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()
284 rc = ecryptfs_add_global_auth_tok(mount_crypt_stat, in ecryptfs_parse_options()
297 mount_crypt_stat-> in ecryptfs_parse_options()
309 mount_crypt_stat->global_default_cipher_key_size = in ecryptfs_parse_options()
314 mount_crypt_stat->flags |= in ecryptfs_parse_options()
318 mount_crypt_stat->flags |= in ecryptfs_parse_options()
322 mount_crypt_stat->flags |= in ecryptfs_parse_options()
324 mount_crypt_stat->flags |= in ecryptfs_parse_options()
330 mount_crypt_stat->global_default_fnek_sig; in ecryptfs_parse_options()
332 mount_crypt_stat->global_default_fnek_sig[ in ecryptfs_parse_options()
335 mount_crypt_stat, in ecryptfs_parse_options()
336 mount_crypt_stat->global_default_fnek_sig, in ecryptfs_parse_options()
341 mount_crypt_stat->global_default_fnek_sig, in ecryptfs_parse_options()
345 mount_crypt_stat->flags |= in ecryptfs_parse_options()
352 mount_crypt_stat->global_default_fn_cipher_name; in ecryptfs_parse_options()
355 mount_crypt_stat->global_default_fn_cipher_name[ in ecryptfs_parse_options()
364 mount_crypt_stat->global_default_fn_cipher_key_bytes = in ecryptfs_parse_options()
369 mount_crypt_stat->flags |= ECRYPTFS_UNLINK_SIGS; in ecryptfs_parse_options()
372 mount_crypt_stat->flags |= in ecryptfs_parse_options()
396 strcpy(mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
399 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
401 strcpy(mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_options()
402 mount_crypt_stat->global_default_cipher_name); in ecryptfs_parse_options()
404 mount_crypt_stat->global_default_cipher_key_size = 0; in ecryptfs_parse_options()
405 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
407 mount_crypt_stat->global_default_fn_cipher_key_bytes = in ecryptfs_parse_options()
408 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_parse_options()
411 mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
412 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_parse_options()
416 mount_crypt_stat->global_default_cipher_name); in ecryptfs_parse_options()
422 if (!ecryptfs_tfm_exists(mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
425 NULL, mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
426 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_parse_options()
431 mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
432 mount_crypt_stat->global_default_cipher_key_size, in ecryptfs_parse_options()
439 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
441 mount_crypt_stat->global_default_fn_cipher_name, NULL)) { in ecryptfs_parse_options()
443 NULL, mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_options()
444 mount_crypt_stat->global_default_fn_cipher_key_bytes); in ecryptfs_parse_options()
449 mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_options()
450 mount_crypt_stat->global_default_fn_cipher_key_bytes, in ecryptfs_parse_options()
458 rc = ecryptfs_init_global_auth_toks(mount_crypt_stat); in ecryptfs_parse_options()
481 struct ecryptfs_mount_crypt_stat *mount_crypt_stat; in ecryptfs_mount() local
506 mount_crypt_stat = &sbi->mount_crypt_stat; in ecryptfs_mount()
569 if (sb_rdonly(path.dentry->d_sb) || mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED) in ecryptfs_mount()
612 ecryptfs_destroy_mount_crypt_stat(&sbi->mount_crypt_stat); in ecryptfs_mount()
631 ecryptfs_destroy_mount_crypt_stat(&sb_info->mount_crypt_stat); in ecryptfs_kill_block_super()