Linux systems Transparent Encrypting File System Design and Implementation

Author
YuYunXiang
Advisor
LiShanPing
School
Zhejiang University
Major
Computer Applications
Classification
TP316.81
Degree
Master's thesis
Year
2006
Downloads
704
Citations
8

Request the full text

Abstract

The traditional way of encryption in Linux is to use "crypt" command, or to apply encryption utility. These two ways are complicated and easy to be invaded. Contrary to these, an encryption file system (EFS—Encryption File System) can be designed through combining encryption techniques and file systems in order that EFS can automatically encrypt and decrypt the files or the directories in the system. The process of encryption and decryption is transparent to a user. A legal user can read the contents of files conveniently, but an unauthorized user will not be able to read the contents of files. Thus, the high security of the file system is ensured and sensitive data are protected. Once EFS is conducted, only the authorized user can open and use encrypted files with a key. This is more significant with laptops, portable equipments or network transmission because the encrypted files cannot be opened in case of the portable equipments being stolen or network files being intercepted. Therefore EFS will be able to avoid unauthorized access and letting out secret information with portable equipments being stolen or plain data of network transmission being intercepted.In the traditional development way, some programers usually choose an available file system as the starting point, modify its source code and its bottom device driver, and add wanted functions to the system in order that a file system with special functions is implemented in Linux. However, this approach of development brings about many problems such as long development period, complicated debug, and poor portability. Other programers may choose to develop a file system in user’ s mode which is located in user’ s space and is easy to be developed and transplanted. However, the biggest problem for this way is that its performance is poor and the loss of the performance can not be tolerated under certain circumstances. Stackable file systems is a way to solve these problems. They are used to insert the file system being developed into the space between VFS(Virtual File System) and the present file system, and at the same time the bottom file system is not involved. This will make development of the file systems much easier and improve the portabililty of the file systems. And high performance of the file systems is acquired since a mode of kernel loadable module is helped to implement stackablefile systems.In this thesis, the author discusses topics mainly including the designing conceptions, the implementing key points and the perfornance evaluation of BEFS (Blowf ish Encryption File System) based on Linux kernel version 2.4. Firstly, the author defines basic concepts of cryptology, encryption file systems and stackable file systems. Secondly, the author introduces FiST(File System Translator)—a file system development tool and how to work with it. Thirdly, the author makes much comparison between several commonly used symmetric encryption algorithms, and selects "Blowfish" as the encryption algorithm for BEFS. Forthly, the author expounds thoroughly the designing conceptions of BEFS, and the key points and details in the implementation of BEFS. Lastly, the author does comparison between BEFS and other relative file systems after making perfornance evaluation of these file systems.Through analysis thoroughly into designing conceptions and implementing methods of BEFS, the author explicates a new way to develop encryption file system with the help of the stackable file system. With this thesis, the author hopes to do his part to the research and development of file systems based on Linux.

Table of contents

Abstract 2-3 Abstract 3-5 directory 5-7 The first chapter 7-15 1.1 Basic concepts of cryptography 7-11 1.1.1 Basic concepts of cryptography and symmetric cryptography model 8-10 1.1.2 block cipher and its mathematical model 10-11 1.2 storage system encryption 11-12 1.2.1 File encryption 11 1.2.2 Storage Media Encryption 11 1.2.3 Encrypting File System 11-12 1.3 Encrypting File System 12-14 1.3.1 Encrypting File System meanings 13 1.3.2 application 13-14 1.4 Thesis Organization 14-15 Chapter background 15-32 2.1 Linux file system 15-20 2.1.1 file system is defined 15 2.1.2 File System classification 15-16 2.1.3 Linux virtual file system 16-20 2.1.3.1 VFS role 16-17 2.1.3.2 VFS model and related data structures 17-20 2.2 stackable file system (Stackable File System) 20-24 2.2.1 Introduction 20-22 2.2.2 Data structure design 22-24 2.3 development tools FiST and based FiST project 24-27 2.3.1 Wrapfs 25 2.3.2 FiST 25-26 2.3.3 based FiST of unionfs 26-27 2.4 Encrypting File System related projects 27-32 2.4.1 Windows Server2003 operating system Encrypting File System 27-28 2.4.2 Red Flag Secure OS 4.0 in the high- strength encryption file system 28-30 2.4.3 Linux operating system CFS 30-31 2.4.4 Linux operating system TCFS 31-32 Chapter 3 System Design 32-40 3.1 design and planning 32-33 3.2 Design Guidelines 33 3.3 Comparison of typical encryption algorithm and selection 33-37 3.3.1 DES and the use of three -key triple DES 34 3.3.2 IDEA 34 3.3.3 RC5 algorithm 34-35 3.3.4 Blowfish 35-37 3.4 design requirements and design elements 37-39 3.4.1 design requirements 37 3.4.2 Design Points 37-39 3.5 inadequacies 39-40 Chapter IV system implementation 40-63 4.1 FiST workflow and BEFS the input file 40-45 4.1.1 FiST workflow 40-41 4.1.2 FiST the input file 41 4.1.3 BEFS input file in the C Declarations section 41-42 4.1.4 BEFS input file in the FiST Declarations section 42 4.1.5 BEFS input file Rules section 42-43 4.1.6 BEFS input file Additional C Code section 43-45 4.2 Blowfish encryption algorithm principle and mode selection 45-53 4.2.1 BlowFish algorithm description 45-46 4.2.2 P box and S-box generation 46-48 4.2.3 Encryption and decryption 48-50 4.2.4 Encryption Mode selection 50-53 4.3 Reading file 53-56 4.4 write file 56-57 4.5 append files 57 4.6 file name encryption 57-58 4.7 file name and directory read 58-60 4.8 Multi-user key management 60-61 4.9 UML and module debugging 61-63 Chapter performance evaluation 63-70 5.1 test environment 63 5.2 special test 63-67 5.2.1 Reading file 64-65 5.2.2 write file 65 5.2.3 lists the directory contents 65-67 5.2.4 Specific test results 67 5.3 integrated test 67-70 Chapter Summary and Outlook 70-72 6.1 Summary 70-71 6.2 Prospects 71-72 References 72-74 Appendix A BEFS prototype system load command 74-75 A.1 BEFS load command 74 A.2 BEFS uninstall command 74-75 Thanks 75

Related dissertations

  1. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  2. Research and Design of Embedded Building Security System
    YangChen ·Liaoning Normal University ·2012 ·Master's thesis
  3. The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
  4. The Research of Household Remote Monitoring Based on Embedded Web Server
  5. Research and Design of Intelligent Video Surveillance System Based on ARM
  6. Design of Video Monitoring System Based on the Embedded
  7. The Design of Embedded Network Video Surveillance System Based on ARM9
  8. Design and Application of the Distributed Monitoring System Based on Embedded Web
  9. Study on Embedded Data Acquisition System Application
    ZhangDong ·Dalian Polytechnic University ·2009 ·Master's thesis
  10. Embedded Software Design of AC Field Detection Instrument Based on ARM
  11. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  12. Based on the Samsung2440Embedded Home Furnishing Design and Implementation of Intelligent Control System
  13. Design of Industrial Ethernet Motion Controller Based on ARM
  14. Research on Pulsating Vacuum Pressure Steam Sterilization Control System Based on ARM
    FuAiJun ·Nanchang University of Aeronautics and ·2013 ·Master's thesis
  15. The software design of intelligent control Home Furnishing gateway based on ARM11
    ZuoPengZuo ·Northwestern University ·2013 ·Master's thesis
  16. The System Design and Implementation of Smart Home Control Terminal Based on Linux
  17. Movement Gait Control Research of Six Feet Bionic Robot
    XuShuai ·Ningxia University ·2013 ·Master's thesis
  18. Research on Embedded Control System for Palletizing Robot
    YangYang ·Nanjing Forestry University ·2013 ·Master's thesis
  19. Control system design of robot based on ARM
    OuYangJianFei ·Jiangxi University of Technology ·2013 ·Master's thesis
  20. AGV car design and development of image recognition and motion control technology based on