A Linux system protection method based on ftrace technology

A system protection and technical technology, applied in the computer field, can solve the problems of operating system damage, accidental operation, poisoning, etc., and achieve the effect of safe operating environment

Active Publication Date: 2022-02-15
NANJING DINGYAN INFORMATION TECH CO
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In recent years, with the rapid popularization of domestic systems, more and more users of Linux-based operating systems have surged. The terminal environment, especially for open computer equipment used in public environments such as computer rooms, Internet cafes, libraries, etc., because it is provided for use by unspecified objects, it is extremely prone to accidental operations, resulting in damage to the operating system, poisoning, and installation of malware many other issues
[0003] Under the Windows operating system, Microsoft provides an SDK that can develop data filtering technology based on the disk sector level to achieve data isolation and redirection, so as to protect the operation of the system. Compared with Windows, Linux does not have a unified SDK to achieve Disk sector-level filtering, and there is still no relatively mature disk filtering software

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
  • A Linux system protection method based on ftrace technology
  • A Linux system protection method based on ftrace technology
  • A Linux system protection method based on ftrace technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.

[0019] In the present invention: ftrace-Function Trace-is mainly used to record the operating track of the kernel function; kallsyms-Linux kernel function, completes the related subsystem of function address extraction+data block organization and packaging functions; the data structure of ftrace_ops-ftrace is used for registration Callback function; new_submit_bio-kernel function; register_ftrace_function-Linux kernel function, the main function of this function is to add the new Hook function to the ftrace_ops_list linked list; offset-hard disk physical sector offset position; bio_alloc-Linux kernel function, apply for a block device Read and write objects.

[0020] Such as image 3 As shown, a Linux system protection method based on ftrace technology includes the following steps: Step S01: ftrace registration; as figure 1 As shown, when booting, t...

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 provides a Linux system protection method based on ftrace technology, step S01: ftrace registration; step S02: analyze the current hard disk layout, count the used space and unused space, and create a table; step S03: obtain the sector offset , the number of sectors, whether to read or write, and the basic request information of the data buffer; step S04: look up the table, and determine whether the sector offset is a protected sector; if it is a protected sector, enter step S06; if it is not a protected sector, Go to step S05; step S05: look up the table, calculate the mapped sector position, call the original function to read and write the new sector position, and realize read and write redirection; step S06: read and write the content of the specified sector on the hard disk. Based on an ftrace-based technology, the invention realizes the interception, reading and writing and data redirection of the Linux system, thereby making the operating environment of the Linux-based operating system safe.

Description

technical field [0001] The invention relates to the field of computer technology, relates to a Linux system protection method, in particular to a Linux system protection method based on ftrace technology. Background technique [0002] In recent years, with the rapid popularization of domestic systems, more and more users of Linux-based operating systems have surged. The terminal environment, especially for open computer equipment used in public environments such as computer rooms, Internet cafes, libraries, etc., because it is provided for use by unspecified objects, it is extremely prone to accidental operations, resulting in damage to the operating system, poisoning, and installation of malware and many other issues. [0003] Under the Windows operating system, Microsoft provides an SDK that can develop data filtering technology based on the disk sector level to achieve data isolation and redirection, so as to protect the operation of the system. Compared with Windows, Li...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F21/57
CPCG06F21/575
Inventor 吴阳郑宗义杜宇
Owner NANJING DINGYAN INFORMATION TECH CO
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products