Method and system for improving software compatibility for linux system

A compatibility and software technology, applied in software indicators, software engineering design, software maintenance/management, etc., can solve the problems of complex management, incompatibility, huge workload, etc., achieve short time consumption, improve compatibility, improve The effect of safety features

Active Publication Date: 2020-10-02
南京云信达科技有限公司
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, domestically produced processors and systems are independently safe and controllable, and there are a large number of incompatibilities between software and hardware. If each set of solutions is specifically adapted, the workload will be extremely large and the management will be more complicated.
For example, the ARM architecture of domestic processors, the independent controllability of the kernel, and security adjustments, etc., cause some software running on these systems to be incompatible in aspects such as some system call instructions, and cannot be compatible with existing software system

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
  • Method and system for improving software compatibility for linux system
  • Method and system for improving software compatibility for linux system
  • Method and system for improving software compatibility for linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Such as figure 1 As shown, this embodiment discloses a method for improving software compatibility for a linux system, which mainly includes the following steps:

[0026] Step 1: The kernel driver module runs in the kernel, and judges the compatibility of the received command information sent by the user mode. If you need to call a custom kernel function, perform steps 2 to 4; otherwise, perform step 5; Among them, the method to judge the compatibility of the received command is: multiply and hash the original call interface address of the received command to obtain the corresponding first key 1 Value, according to the first key 1 The value is queried in the preset mapping table. If the received command is in the preset mapping table, it is a command that needs to call a custom kernel function; otherwise, the kernel system call is captured according to the received command Process process identification number, call the corresponding process process to process the data; amo...

Embodiment 2

[0032] Such as figure 2 As shown, this embodiment discloses a method for improving the compatibility of software used in a linux system, which mainly includes the following steps:

[0033] Step 1: The kernel driver module runs in the kernel and checks the legality of the received command information sent by the user mode. If it passes the legality test, proceed to step 2; if it fails the legality test, the command information is directly intercepted ;

[0034] Among them, the method of legality detection is:

[0035] Step 101: Pre-set the format of the legal command during initialization, which is mainly the string key generated by the multiplication hash algorithm through the command name and the length of the command parameter in the legal command 2 , Extract string key 2 The odd bits of the form a substring, and the substring and the command name and the length of the command parameter are arranged in order to form a string by two characters (&&) to form a string key 3 , The stri...

Embodiment 3

[0045] Such as image 3 As shown, this embodiment discloses a method for improving the compatibility of software used in a linux system, which mainly includes the following steps:

[0046] Step 1: Initialize the command permission control table preset in the kernel driver module, where the command permission control table is an array. According to the original call interface address of each command, do multiplication and Hash operation to get the position of the corresponding command in the array. , And then this location stores the data corresponding to the command authority status, that is, the data of the command authority status is 1, which means that restriction processing is required, that is, the command will not be executed; the data of the command authority status is 0, which means that the original call interface can be submitted to the command Carry out execution. The command authority control table can be dynamically adjusted.

[0047] Step 2: The kernel driver module...

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 invention provides a method for improving software compatibility for a linux system. The method mainly comprises the following steps: capturing a processing process identification number called bya kernel system from a received command; suspending an original processing process called by the kernel system to enable the original processing process to be in a dormant state; cloning a system call process of the kernel, and modifying an interface address in a cloned system call process copy into an address stored by a custom function, wherein the modified cloned system call process copy is inan active state to wait for the CPU to execute a related processing command; and after the command is executed, destroying the cloned system call process copy, searching the original processing process according to the processing process identification number, and recovering the operation of the original processing process. According to the method, the compatibility of the software for the linuxsystem is effectively improved, the consumed time of the method is short, and the whole method is dynamically executed and is more efficient and stable. Meanwhile, the safety performance of the wholemethod is improved.

Description

Technical field [0001] The invention relates to a method and a system for improving software compatibility for a linux system. Background technique [0002] With the progress of the times, people's work, life, and study have entered an electronic state, so these can be realized only by relying on software with various functions. As the current electronic equipment is becoming more and more diversified, and more and more systems are used, how to improve the compatibility of software is also a problem that needs to be solved urgently. [0003] At present, the domestically-made processors and systems are autonomous, safe and controllable, and there are a large number of software and hardware parts that are incompatible. If each set of solutions is adapted specifically, the workload is extremely large and the management is more complicated. For example, the ARM architecture of domestic processors, the independent controllability of the kernel and security adjustments, etc., cause some...

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): G06F8/41G06F8/77
CPCG06F8/427G06F8/77
Inventor 赵熙
Owner 南京云信达科技有限公司
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