Lines Matching defs:mount_crypt_stat
185 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
192 &mount_crypt_stat->global_auth_tok_list,
213 struct ecryptfs_mount_crypt_stat *mount_crypt_stat)
215 memset((void *)mount_crypt_stat, 0,
217 INIT_LIST_HEAD(&mount_crypt_stat->global_auth_tok_list);
218 mutex_init(&mount_crypt_stat->global_auth_tok_list_mutex);
219 mount_crypt_stat->flags |= ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED;
254 struct ecryptfs_mount_crypt_stat *mount_crypt_stat =
255 &sbi->mount_crypt_stat;
275 ecryptfs_init_mount_crypt_stat(mount_crypt_stat);
284 rc = ecryptfs_add_global_auth_tok(mount_crypt_stat,
297 mount_crypt_stat->
309 mount_crypt_stat->global_default_cipher_key_size =
314 mount_crypt_stat->flags |=
318 mount_crypt_stat->flags |=
322 mount_crypt_stat->flags |=
324 mount_crypt_stat->flags |=
330 mount_crypt_stat->global_default_fnek_sig;
332 mount_crypt_stat->global_default_fnek_sig[
335 mount_crypt_stat,
336 mount_crypt_stat->global_default_fnek_sig,
341 mount_crypt_stat->global_default_fnek_sig,
345 mount_crypt_stat->flags |=
352 mount_crypt_stat->global_default_fn_cipher_name;
355 mount_crypt_stat->global_default_fn_cipher_name[
364 mount_crypt_stat->global_default_fn_cipher_key_bytes =
369 mount_crypt_stat->flags |= ECRYPTFS_UNLINK_SIGS;
372 mount_crypt_stat->flags |=
396 strcpy(mount_crypt_stat->global_default_cipher_name,
399 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)
401 strcpy(mount_crypt_stat->global_default_fn_cipher_name,
402 mount_crypt_stat->global_default_cipher_name);
404 mount_crypt_stat->global_default_cipher_key_size = 0;
405 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)
407 mount_crypt_stat->global_default_fn_cipher_key_bytes =
408 mount_crypt_stat->global_default_cipher_key_size;
411 mount_crypt_stat->global_default_cipher_name,
412 mount_crypt_stat->global_default_cipher_key_size);
416 mount_crypt_stat->global_default_cipher_name);
422 if (!ecryptfs_tfm_exists(mount_crypt_stat->global_default_cipher_name,
425 NULL, mount_crypt_stat->global_default_cipher_name,
426 mount_crypt_stat->global_default_cipher_key_size);
431 mount_crypt_stat->global_default_cipher_name,
432 mount_crypt_stat->global_default_cipher_key_size,
439 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES)
441 mount_crypt_stat->global_default_fn_cipher_name, NULL)) {
443 NULL, mount_crypt_stat->global_default_fn_cipher_name,
444 mount_crypt_stat->global_default_fn_cipher_key_bytes);
449 mount_crypt_stat->global_default_fn_cipher_name,
450 mount_crypt_stat->global_default_fn_cipher_key_bytes,
458 rc = ecryptfs_init_global_auth_toks(mount_crypt_stat);
481 struct ecryptfs_mount_crypt_stat *mount_crypt_stat;
506 mount_crypt_stat = &sbi->mount_crypt_stat;
569 if (sb_rdonly(path.dentry->d_sb) || mount_crypt_stat->flags & ECRYPTFS_ENCRYPTED_VIEW_ENABLED)
612 ecryptfs_destroy_mount_crypt_stat(&sbi->mount_crypt_stat);
631 ecryptfs_destroy_mount_crypt_stat(&sb_info->mount_crypt_stat);