File protection method and electronic equipment
The invention is suitable for the technical field of terminals, and provides a file protection method and electronic device.The file protection method comprises the steps that an application program framework layer obtains a file descriptor of a first to-be-protected file based on a file path of the...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention is suitable for the technical field of terminals, and provides a file protection method and electronic device.The file protection method comprises the steps that an application program framework layer obtains a file descriptor of a first to-be-protected file based on a file path of the first to-be-protected file having access permission, and sends the file descriptor to a kernel layer; the kernel layer sets a file protection mark for the first to-be-protected file based on the file descriptor; the application framework layer sends a file path of a second to-be-protected file without permission to access to the kernel layer; when the kernel layer receives a file access request and adds a target file indicated by the file access request to a memory from a disk, if it is determined that the target file is matched with a second to-be-protected file, setting a file protection mark for the target file; when the kernel layer executes the memory recovery operation, the memory space resource occupied by |
---|