1 2 3 4 5 6 7 8 9 10 | General setup ---> File systems ---> Miscellaneous filesystems ---> <M> eCrypt filesystem layer support (EXPERIMENTAL) Security options ---> <M> Enable access key retention support Cryptographic API ---> <M> MD5 digest algorithm <M> AES cipher algorithms |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | static struct file_system_type ecryptfs_fs_type = { .owner = THIS_MODULE, .name = "ecryptfs", .get_sb = ecryptfs_get_sb, .kill_sb = ecryptfs_kill_block_super, .fs_flags = 0 }; struct ecryptfs_sb_info { struct super_block *wsi_sb; struct ecryptfs_mount_crypt_stat mount_crypt_stat; }; struct ecryptfs_inode_info { struct inode vfs_inode; struct inode *wii_inode; struct file *lower_file; /* wii_inode, lower_file 指向下层文件系统对应的数据结构 */ struct mutex lower_file_mutex; struct ecryptfs_crypt_stat crypt_stat; }; struct ecryptfs_dentry_info { struct path lower_path; /* 下层文件系统的 dentry */ struct ecryptfs_crypt_stat *crypt_stat; }; struct ecryptfs_file_info { struct file *wfi_file; struct ecryptfs_crypt_stat *crypt_stat; }; |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |