Supercharge Your Innovation With Domain-Expert AI Agents!

Processing methods and apparatuses for file reading and writing operations

A processing method and technology of a processing device, which are applied in the direction of digital data protection, program/content distribution protection, etc., can solve the problems of opaque encryption or decryption, inconvenient user operation, etc.

Inactive Publication Date: 2016-07-27
TCL CORPORATION
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a processing method and device for file read and write operations, aiming at solving the problem in the prior art that the encryption or decryption of files in the mobile terminal is opaque to the user and requires the user to manually Operations that cause inconvenience to users

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Processing methods and apparatuses for file reading and writing operations
  • Processing methods and apparatuses for file reading and writing operations
  • Processing methods and apparatuses for file reading and writing operations

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] see figure 1 , the implementation flow of the processing method for file write operation provided by Embodiment 1 of the present invention, which includes the following steps:

[0043] In step S101, a file to be written and a write instruction for the file issued by an application program running in user space are received;

[0044] In step S102, the file to be written and the write instruction of the file are transmitted to the virtual file system running in the kernel space;

[0045] In step S103, the file to be written and the write instruction of the file are forwarded to the file encryption and decryption system running in the kernel space through the virtual file system;

[0046] In step S104, the file encryption and decryption system encrypts the file to be written;

[0047] In step S105, according to the write instruction of the file, the encrypted file is written into the real file system running in the kernel space.

[0048] The specific implementation proc...

Embodiment 2

[0121] see figure 2 , the specific process of finding the key of the file currently to be written for the embodiment of the present invention is as follows:

[0122] In step S201, the directory entry object pointed to by the file object of the currently opened file is searched.

[0123] In step S202, the index node object of the file is obtained according to the pointed directory entry object.

[0124] In step S203, the superblock object pointing to the file is obtained according to the inode object.

[0125] In step S204, the private data of the super block object is obtained according to the super block object of the file, wherein the private data indicates the file encryption and decryption system.

[0126] In step S205, according to the private data, the linked list storing the user ID and the key in the file encryption and decryption system is searched sequentially.

[0127] In step S206, according to the user ID of the current process, the key corresponding to the us...

Embodiment 3

[0137] see image 3 , the specific implementation process of the processing method of the file write operation provided by the embodiment of the present invention is as follows:

[0138] In step S301, a file to be written and a write instruction for the file issued by an application program running in the user space are received;

[0139] In step S302, the key of the file currently to be written is searched.

[0140] In the embodiment of the present invention, the key of the file to be currently written is searched according to the above-mentioned implementation scheme of obtaining the key.

[0141] In step S303, the file to be written and the write instruction of the file are transmitted to the virtual file system running in the kernel space;

[0142] In step S304, the write operation function in the virtual file system is called.

[0143] In the embodiment of the present invention, the write operation function in the virtual file system is called, for example, sys_write()...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention is applicable to the technical field of file processing, and provides a processing method for file writing operations: receiving a file to be written and a write instruction for the file issued by an application program running in user space; The file to be written and the write instruction of the file are transmitted to the virtual file system running in the kernel space; the file to be written and the write instruction of the file are forwarded to the virtual file system running in the kernel space through the virtual file system A file encryption and decryption system; encrypting the file to be written; writing the encrypted file into a real file system running in the kernel space according to a write instruction of the file. The present invention is based on encryption and decryption behaviors and key management which are transparent to end users. Moreover, the file encryption and decryption system can provide encryption services when writing data and decryption services when reading data in the background, which brings convenience to user operations.

Description

technical field [0001] The invention belongs to the technical field of file processing, and in particular relates to a processing method and device for file read and write operations. Background technique [0002] With the continuous popularization of Android smart devices, while bringing great convenience to people's communication, reading and entertainment, more and more attention has been paid to the file security of smart devices. Usually, especially Android-based mobile terminals are personal items or items for personal use, and their privacy and privacy are prominent. Therefore, the confidentiality requirements of the information stored in them are high. It hurts the convenience of using the mobile terminal, thus losing the inherent advantages of the mobile terminal itself. That is, the encryption or decryption of the files in the mobile terminal is opaque to the user and needs to be manually operated by the user. [0003] Therefore, it is necessary to propose a new ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F21/10G06F21/62
Inventor 孙向作
Owner TCL CORPORATION
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More