• Home
  • Raw
  • Download

Lines Matching refs:mount_crypt_stat

201 	struct ecryptfs_mount_crypt_stat *mount_crypt_stat)  in ecryptfs_init_global_auth_toks()  argument
208 &mount_crypt_stat->global_auth_tok_list, in ecryptfs_init_global_auth_toks()
229 struct ecryptfs_mount_crypt_stat *mount_crypt_stat) in ecryptfs_init_mount_crypt_stat() argument
231 memset((void *)mount_crypt_stat, 0, in ecryptfs_init_mount_crypt_stat()
233 INIT_LIST_HEAD(&mount_crypt_stat->global_auth_tok_list); in ecryptfs_init_mount_crypt_stat()
234 mutex_init(&mount_crypt_stat->global_auth_tok_list_mutex); in ecryptfs_init_mount_crypt_stat()
235 mount_crypt_stat->flags |= ECRYPTFS_MOUNT_CRYPT_STAT_INITIALIZED; in ecryptfs_init_mount_crypt_stat()
270 struct ecryptfs_mount_crypt_stat *mount_crypt_stat = in ecryptfs_parse_options() local
271 &sbi->mount_crypt_stat; in ecryptfs_parse_options()
291 ecryptfs_init_mount_crypt_stat(mount_crypt_stat); in ecryptfs_parse_options()
300 rc = ecryptfs_add_global_auth_tok(mount_crypt_stat, in ecryptfs_parse_options()
313 mount_crypt_stat-> in ecryptfs_parse_options()
325 mount_crypt_stat->global_default_cipher_key_size = in ecryptfs_parse_options()
330 mount_crypt_stat->flags |= in ecryptfs_parse_options()
334 mount_crypt_stat->flags |= in ecryptfs_parse_options()
338 mount_crypt_stat->flags |= in ecryptfs_parse_options()
340 mount_crypt_stat->flags |= in ecryptfs_parse_options()
346 mount_crypt_stat->global_default_fnek_sig; in ecryptfs_parse_options()
348 mount_crypt_stat->global_default_fnek_sig[ in ecryptfs_parse_options()
351 mount_crypt_stat, in ecryptfs_parse_options()
352 mount_crypt_stat->global_default_fnek_sig, in ecryptfs_parse_options()
357 mount_crypt_stat->global_default_fnek_sig, in ecryptfs_parse_options()
361 mount_crypt_stat->flags |= in ecryptfs_parse_options()
368 mount_crypt_stat->global_default_fn_cipher_name; in ecryptfs_parse_options()
371 mount_crypt_stat->global_default_fn_cipher_name[ in ecryptfs_parse_options()
380 mount_crypt_stat->global_default_fn_cipher_key_bytes = in ecryptfs_parse_options()
385 mount_crypt_stat->flags |= ECRYPTFS_UNLINK_SIGS; in ecryptfs_parse_options()
388 mount_crypt_stat->flags |= in ecryptfs_parse_options()
412 strcpy(mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
415 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
417 strcpy(mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_options()
418 mount_crypt_stat->global_default_cipher_name); in ecryptfs_parse_options()
420 mount_crypt_stat->global_default_cipher_key_size = 0; in ecryptfs_parse_options()
421 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
423 mount_crypt_stat->global_default_fn_cipher_key_bytes = in ecryptfs_parse_options()
424 mount_crypt_stat->global_default_cipher_key_size; in ecryptfs_parse_options()
427 mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
428 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_parse_options()
432 mount_crypt_stat->global_default_cipher_name); in ecryptfs_parse_options()
438 if (!ecryptfs_tfm_exists(mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
441 NULL, mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
442 mount_crypt_stat->global_default_cipher_key_size); in ecryptfs_parse_options()
447 mount_crypt_stat->global_default_cipher_name, in ecryptfs_parse_options()
448 mount_crypt_stat->global_default_cipher_key_size, in ecryptfs_parse_options()
455 if ((mount_crypt_stat->flags & ECRYPTFS_GLOBAL_ENCRYPT_FILENAMES) in ecryptfs_parse_options()
457 mount_crypt_stat->global_default_fn_cipher_name, NULL)) { in ecryptfs_parse_options()
459 NULL, mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_options()
460 mount_crypt_stat->global_default_fn_cipher_key_bytes); in ecryptfs_parse_options()
465 mount_crypt_stat->global_default_fn_cipher_name, in ecryptfs_parse_options()
466 mount_crypt_stat->global_default_fn_cipher_key_bytes, in ecryptfs_parse_options()
474 rc = ecryptfs_init_global_auth_toks(mount_crypt_stat); in ecryptfs_parse_options()
601 ecryptfs_destroy_mount_crypt_stat(&sbi->mount_crypt_stat); in ecryptfs_mount()
620 ecryptfs_destroy_mount_crypt_stat(&sb_info->mount_crypt_stat); in ecryptfs_kill_block_super()