A method, device, equipment and storage medium for configuring multiple security software compatibility

By configuring reference counts for installed security software and blocking uninstalls with non-zero reference counts, the issue of security software compatibility in a multi-security software configuration environment is solved, system crashes are avoided, and compatibility between security software is achieved.

CN115113887BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210753462.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-10-22
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

Existing security software designed based on Hook system calls has compatibility issues in multiple security software configuration environments, causing system crashes.

Method used

Ensure the stability of the system call table by configuring reference counts for installed security software and blocking security software uninstall commands with non-zero reference counts during uninstallation.

Benefits of technology

It effectively avoids system crashes caused by users arbitrarily uninstalling security software, and achieves compatibility between multiple security software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115113887B_ABST
    Figure CN115113887B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of device security technology, and specifically discloses a method, apparatus, device and storage medium for configuring compatibility of multiple security software. The calling mechanism of the security software designed based on the hook system call is to replace the calling address of the installed security software pointed to in the system call table with the calling address of the security software to be installed on the premise of saving the calling address of the installed security software, resulting in the problem that if the security software installed earlier is uninstalled first, the system call table cannot call the original kernel function of the security software installed later, thereby causing the system to crash. By adding one to the reference count of the installed security software when installing the security software, if the reference count of the security software to be uninstalled is not zero when uninstalling the security software, the execution of the security software uninstall command is blocked, which effectively avoids the system crash caused by the user's arbitrary uninstallation of the security software and achieves compatibility between the security software.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device security technology, and in particular to a method, apparatus, device and storage medium for configuring compatibility of multiple security software. Background Art

[0002] At present, the kernel modules used by host security software on the market are all designed based on the Hook system call. The Hook system call is to hijack the kernel service functions sys_open(), sys_close(), sys_execve(), etc. corresponding to the system calls such as the file opening command open(), file closing command close(), and program execution command execve(), and replace these kernel service functions with the functions hook_open(), hook_close(), hook_execve(), etc. implemented by the security software itself to meet the customized security requirements.

[0003] Figure 1 This is a diagram showing an example of a Hook system call.

[0004] like Figure 1 As shown in the figure, when the application (user space) calls the open file command open(), it will fall into the kernel (kernel space) through int 0x80, and pass parameters such as __NR_open (the maximum number of files a process can open) to the kernel, and execute the function pointed to by the open call command sys_call_table[__NR_open] in the system call table in the kernel. The function pointed to by sys_call_table[__NR_open] has been replaced by the kernel module in the security software with a custom hook_open() (i.e. Figure 1 In the monitor hook_open() shown in the figure, some security logic is implemented in hook_open(), and finally the original system open command function sys_open() (ie kernel origin sys_open()) is called in hook_open().

[0005] As security requirements increase, users often choose to install various types of security software on their devices. However, for these security software based on Hook system calls, users only pay attention to the functions of the security software itself and the compatibility of the security software with the device system, but do not consider the compatibility between security software, which leads to system crashes during use.

[0006] Solving the compatibility problem between multiple security software and avoiding system crash due to incompatibility between security software when multiple security software exist on a device is a technical problem that needs to be solved by technical personnel in this field. Summary of the invention

[0007] The purpose of this application is to provide a multi-security software compatibility configuration method, device, equipment and storage medium, which is used to fill the gap in compatibility issues between security software when there are multiple security software on the device, and avoid system crashes caused by incompatibility between security software.

[0008] In order to solve the above technical problems, the present application provides a multi-security software compatibility configuration method, including:

[0009] When receiving a security software installation command, if the device has installed security software, when executing the security software installation command, the reference count of each installed security software is increased by one;

[0010] When a security software uninstallation command is received, if the reference count of the security software to be uninstalled is not zero, the execution of the security software uninstallation command is blocked.

[0011] Optionally, also include:

[0012] If the reference count of the security software to be uninstalled is zero, the security software uninstallation command is executed, and the reference count of each installed security software is reduced by one.

[0013] Optionally, the executing the security software uninstallation command is specifically:

[0014] After replacing the Hook system call function of the security software to be uninstalled pointed to by the call command in the system call table with the Hook system call function of the security software last installed before the security software to be uninstalled, the security software to be uninstalled is uninstalled.

[0015] Optionally, the step of increasing the reference count of each installed security software by one is specifically as follows:

[0016] Incrementing the reference count of the installed security software having the same type of function as the security software to be installed of the security software installation command by one;

[0017] Correspondingly, when receiving the security software uninstallation command, if the reference count of the security software to be uninstalled is not zero, the execution of the security software uninstallation command is blocked, specifically:

[0018] When receiving the security software uninstallation command, if the security software to be uninstalled has a function whose reference count is not zero, blocking the execution of the security software uninstallation command;

[0019] The step of reducing the reference count of each installed security software by one is specifically as follows:

[0020] The reference count of the function of the same type as the security software to be uninstalled in each of the installed security software is reduced by one.

[0021] Optionally, the executing the security software installation command is specifically:

[0022] After saving the address of the Hook system call function of the security software installed most recently, the address of the Hook system call function of the security software pointed to by the call command in the system call table is replaced with the address of the Hook system call function of the security software to be installed in the security software installation command.

[0023] Optionally, when receiving the security software installation command, if the device has installed security software, when executing the security software installation command, the reference count of each installed security software is increased by one, specifically:

[0024] When the security software installation command is received, the system component information is queried in the system of the device. If the system component information contains information about the installed security software, the reference count of each installed security software is increased by one when the security software installation command is executed.

[0025] Optionally, the step of increasing the reference count of each installed security software by one is specifically as follows:

[0026] The reference count written into the component information of the installed security software is increased by one.

[0027] Optionally, when receiving the security software installation command, if the device has installed security software, when executing the security software installation command, the reference count of each installed security software is increased by one, specifically:

[0028] When the running status monitoring process detects the security software installation command, the pre-deployed security software management script is called to increase the reference count of each installed security software by one when executing the security software installation command when the installed security software exists on the device;

[0029] Correspondingly, when receiving the security software uninstallation command, if the reference count of the security software to be uninstalled is not zero, the execution of the security software uninstallation command is blocked, specifically:

[0030] When the status monitoring process is running and the security software uninstallation command is monitored, the security software management script is called to block the execution of the security software uninstallation command when the reference count of the security software to be uninstalled is not zero.

[0031] Optionally, also include:

[0032] If the reference count of the security software to be uninstalled is not zero, a warning message prohibiting uninstallation of the security software to be uninstalled is generated and issued.

[0033] In order to solve the above technical problems, the present application also provides a multi-security software compatibility configuration device, including:

[0034] An installation unit, configured to, when receiving a security software installation command, increase a reference count of each installed security software by one when executing the security software installation command if the device has installed security software;

[0035] The first uninstallation unit is used to block the execution of the security software uninstallation command when receiving the security software uninstallation command if the reference count of the security software to be uninstalled is not zero.

[0036] In order to solve the above technical problems, the present application also provides a multi-security software compatible configuration device, including:

[0037] Memory for storing computer programs;

[0038] A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the multi-security software compatibility configuration method as described in any one of the above items are implemented.

[0039] In order to solve the above technical problems, the present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the multi-security software compatibility configuration method as described in any one of the above items are implemented.

[0040] After research, it was found that since the calling mechanism of the security software designed based on the hook system call is to replace the calling address of the installed security software pointed to in the system call table with the calling address of the security software to be installed under the premise of saving the calling address of the installed security software, if the security software with an earlier installation time is uninstalled first during uninstallation, the calling address of the earlier security software will be released, and the system call table cannot call the original kernel function of the later installed security software, which will inevitably lead to system crash. Therefore, the multi-security software compatible configuration method provided by this application, by adding one to the reference count of the installed security software when installing the security software, if the reference count of the security software to be uninstalled is not zero when uninstalling the security software, the execution of the security software uninstall command is blocked, which effectively avoids the system crash caused by the user's arbitrary uninstallation of security software and realizes the compatibility between various security software.

[0041] The present application also provides a multi-security software compatible configuration device, equipment and storage medium, which have the above-mentioned beneficial effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0043] Figure 1 This is a schematic diagram of an example of a Hook system call;

[0044] Figure 2 A flowchart of a method for configuring multiple security software compatibility provided in an embodiment of the present application;

[0045] Figure 3 A schematic diagram of the structure of a multi-security software compatibility configuration device provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of the structure of a multi-security software compatible configuration device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The core of this application is to provide a multi-security software compatibility configuration method, device, equipment and storage medium, which are used to fill the gap in compatibility issues between security software when there are multiple security software on the device, and avoid system crashes caused by incompatibility between security software.

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0049] Embodiment 1

[0050] Figure 2 A flowchart of a method for configuring multiple security software compatibility is provided in an embodiment of the present application.

[0051] like Figure 2 As shown, the multi-security software compatibility configuration method provided in the embodiment of the present application includes:

[0052] S201: When a security software installation command is received, if the device has security software installed, then when executing the security software installation command, the reference count of each installed security software is increased by one.

[0053] S202: When a security software uninstallation command is received, if the reference count of the security software to be uninstalled is not zero, the execution of the security software uninstallation command is blocked.

[0054] Research has found that since the calling mechanism of the security software designed based on the Hook system call is to replace the calling address of the installed security software pointed to in the system call table with the calling address of the security software to be installed while saving the calling address of the installed security software, if the security software installed earlier is uninstalled first during uninstallation, the calling address of the earlier security software will be released, and the system call table will not be able to call the original kernel function of the security software installed later, which will inevitably lead to a system crash.

[0055] For example, for the kernel service function sys_open() corresponding to the file open command open(), if security software A is first installed on the device, the kernel module of security software A will first save the address of the original system open command function sys_open() pointed to by the open call command sys_call_table[__NR_open] in the system call table, and then replace the original system open command function sys_open() pointed to by the open call command sys_call_table[__NR_open] in the system call table with the self-implemented Hook system call function hook_open_A(), and the installation of security software A is now complete. When uninstalling security software A, to restore the Hook system call function hook_open_A() of security software A pointed to by the open call command sys_call_table[__NR_open] in the system call table to the original system open command function sys_open(), it is necessary to find the address of the pre-saved original system open command function sys_open() from the kernel module of security software A to obtain the original system open command function sys_open().

[0056] On the same device, if security software A has been installed and not uninstalled, and security software B is installed, the kernel module of security software B will first save the address of the Hook system call function hook_open_A() of security software A pointed to by the open call command sys_call_table[__NR_open] in the current system call table, and then replace the hook_open_A() pointed to by the open call command sys_call_table[__NR_open] in the system call table with the Hook system call function hook_open_B() implemented by itself, and the installation of security software B is now complete. When uninstalling security software B, to restore the hook_open_B() pointed to by the open call command sys_call_table[__NR_open] in the system call table to the previous state of hook_open_A(), it is necessary to find the pre-saved address of hook_open_A() from the kernel module of security software B to obtain hook_open_A().

[0057] However, if you install security software A first and then install security software B, but then want to uninstall security software A first, the system will inevitably crash. This is because when uninstalling security software A, the Hook system call function hook_open_A() of security software A pointed to by the open call command sys_call_table[__NR_open] in the system call table must be restored to the original system open command function sys_open(), so that the memory space of hook_open_A() will be released. Figure 1 As shown in the figure, when a system call to open the file command open() occurs, it will fall into the kernel through int 0x80, execute hook_open_B(), and finally execute the original kernel service function. At this time, the original kernel service function is hook_open_A(). Since the memory space of hook_open_A() has been released, it will inevitably cause the system to crash.

[0058] In order to solve the problem of incompatibility between security software that may cause system crash when multiple security software are installed on the same device due to user uninstallation of a certain security software, the embodiment of the present application provides a method for configuring compatibility between multiple security software, aiming to avoid system crash caused by arbitrary uninstallation of security software by users. The method for configuring compatibility between multiple security software provided by the embodiment of the present application configures reference counts for each installed security software. Whenever a new security software is installed, the reference count of the installed security software is increased by one, and the uninstallation command of the security software to be uninstalled whose reference count is not zero is blocked. By applying the method for configuring compatibility between multiple security software provided by the embodiment of the present application, only the most recently installed security software is allowed to be uninstalled, thereby effectively avoiding the problem of system crash caused by the deletion of the function pointed to by the call command of the system call table due to arbitrary uninstallation of security software by users, and achieving compatibility between the security software.

[0059] In a specific implementation, S201: when a security software installation command is received, if the device has installed security software, then when the security software installation command is executed, the reference count of each installed security software is increased by one. Specifically, it can be: when a security software installation command is received, the system component information is queried in the system of the device. If the system component information contains information about the installed security software, then when the security software installation command is executed, the reference count of each installed security software is increased by one.

[0060] That is, you can query / sys / module / in the device system to determine whether there is installed security software. If there is installed security software, the reference count of each installed security software is increased by 1. In the application scenario provided above, when installing security software B, you can query / sys / module / in the system to determine whether security software A is installed. If security software A is installed, the reference count of security software A is increased by 1.

[0061] Further, executing the security software installation command can specifically be: after saving the address of the Hook system call function of the security software most recently installed, the address of the Hook system call function of the security software pointed to by the call command in the system call table is replaced with the address of the Hook system call function of the security software to be installed in the security software installation command.

[0062] Specifically, the address of the Hook system call function of the most recently installed security software can be saved in the kernel module of the security software to be installed, and then the address of the Hook system call function of the security software pointed to by the call command in the system call table is replaced with the address of the Hook system call function of the security software to be installed, so that when the system call command is called, the Hook system call function of the security software installed later is called first, and then the Hook system call function of the security software installed earlier is called, until the original system command function is called, and the security policies of each security software are implemented without conflict during the calling process.

[0063] In the application scenario provided above, when installing security software B, the last installed security software is security software A, then the address of the Hook system call function hook_open_A() of security software A is saved in the kernel module of security software B, and then the Hook system call function hook_open_A() of security software A pointed to by the open call command sys_call_table[__NR_open] in the system call table is replaced with the Hook system call function hook_open_B() of security software B. After the installation of security software B is completed, when the system calls the open call command, the Hook system call function hook_open_B() of security software B is called first, then the Hook system call function hook_open_A() of security software A is called, and finally the original system open command function sys_open() is called, and the security policy of security software A and the security policy of security software B are implemented during the calling process.

[0064] By applying the above scheme provided by the embodiment of the present application, it can be foreseen that the earlier the security software is installed, the more reference counts it has, and the later the security software is installed, the fewer reference counts it has. If the reference counts of each security software only increase and never decrease, only the most recently installed security software will be allowed to be uninstalled. In order to facilitate user use, the multi-security software compatibility configuration method provided by the embodiment of the present application may also include: if the reference count of the security software to be uninstalled is zero, execute the security software uninstall command, and reduce the reference count of each installed security software by one.

[0065] The execution of the security software uninstallation command in S202 may specifically be: after replacing the Hook system call function of the security software to be uninstalled pointed to by the call command in the system call table with the Hook system call function of the security software last installed before the security software to be uninstalled, uninstall the security software to be uninstalled.

[0066] Specifically, after replacing the Hook system call function of the security software to be uninstalled pointed to by the call command in the system call table with the Hook system call function of the security software last installed before the security software to be uninstalled, the memory occupied by the Hook system call function of the security software to be uninstalled is released to complete the uninstallation of the security software to be uninstalled.

[0067] In the application scenario provided above, when uninstalling security software B, if it is determined that the reference count of security software B is zero, that is, there is no installed security software after security software B, the operation of uninstalling security software B is allowed. At this time, the address of the Hook system call function hook_open_B() of security software B pointed to by the open call command sys_call_table[__NR_open] in the system call table is restored to the address of the Hook system call function hook_open_A() of security software A that was last installed before security software B. If security software A is to be uninstalled later, since the reference count of security software A is zero at this time, the operation of uninstalling security software A is allowed, and the address of the Hook system call function hook_open_A() of security software A pointed to by the open call command sys_call_table[__NR_open] in the system call table is restored to the address of the original system open command function sys_open(), and the uninstallation of security software A is completed.

[0068] During the installation and uninstallation process, you can first execute the step of increasing the reference count of the installed security software by one, and then execute the security software installation command; first execute the step of decreasing the reference count of the installed security software by one, and then execute the security software uninstallation command.

[0069] In order to make the user clearly understand the reason why the uninstallation of the installed security software is rejected, the multi-security software compatibility configuration method provided in the embodiment of the present application may also include: if the reference count of the security software to be uninstalled is not zero, generating and publishing an alarm message prohibiting the uninstallation of the security software to be uninstalled.

[0070] Specifically, the specific value of the reference count of the security software to be uninstalled and the security software that references the security software to be uninstalled may be written in the warning information for prohibiting uninstallation of the security software to be uninstalled.

[0071] Embodiment 2

[0072] Normally, security software will replace all the functions corresponding to the system call commands in the system call table with the Hook system call functions implemented by itself based on the Hook system call. However, with the increase in the types of system call commands in the system call table and the different security strategies of different security software, some security software will not hijack all system call commands. At this time, if a security software is not the last one installed, but its Hook system call function has not been referenced, the uninstallation of the security software will not cause the system to crash.

[0073] Therefore, based on the above embodiments, in the multi-security software compatibility configuration method provided in the embodiments of the present application, the reference count of each installed security software is increased by one in S201. Specifically, it can be: the reference count of the installed security software that has the same type of function as the security software to be installed in the security software installation command is increased by one.

[0074] Correspondingly, in S202, when a security software uninstallation command is received, if the reference count of the security software to be uninstalled is not zero, the execution of the security software uninstallation command is blocked. Specifically, when a security software uninstallation command is received, if the security software to be uninstalled has a function whose reference count is not zero, the execution of the security software uninstallation command is blocked.

[0075] The reference count of each installed security software is reduced by one, which may be specifically: the reference count of the function of the same type as the security software to be uninstalled in each installed security software is reduced by one.

[0076] The reference count statistics are accurately calculated to the unit of function, and the reference count statistics are established for all functions involved in each security software, so as to realize the refined management of the reference relationship of security software.

[0077] Embodiment 3

[0078] Since the compatibility issues of multiple security software usually only involve a single device, the multiple security software compatibility configuration method provided in the embodiment of the present application can be applied to any processor on the device, such as a central processing unit or a coprocessor.

[0079] The multi-security software compatibility configuration method provided in the embodiment of the present application can be pre-deployed in the device system in the form of a security software management script. When a security software installation event or a security software uninstall event occurs, the security software management script is called to execute the multi-security software compatibility configuration method provided in the embodiment of the present application.

[0080] In the multi-security software compatible configuration method provided in the embodiment of the present application, S201: when a security software installation command is received, if the device has installed security software, then when the security software installation command is executed, the reference count of each installed security software is increased by one. Specifically, it can be: when the running status monitoring process detects the security software installation command, the pre-deployed security software management script is called to increase the reference count of each installed security software by one when the security software installation command is executed when the security software installation command is executed.

[0081] Correspondingly, S202: when a security software uninstall command is received, if the reference count of the security software to be uninstalled is not zero, the execution of the security software uninstall command is blocked. Specifically, when the running status monitoring process detects the security software uninstall command, the security software management script is called to block the execution of the security software uninstall command when the reference count of the security software to be uninstalled is not zero.

[0082] In a specific implementation, different processes can be used to perform security software status detection and security software installation and uninstallation, and the logic of the multi-security software compatibility configuration method provided in the embodiment of the present application can be implemented in the security software management script. The status monitoring process is used to monitor whether there is new security software to be installed or installed security software to be uninstalled. If detected, the security software installation process or security software uninstallation process is entered, and the security software management script is called to install or uninstall the security software.

[0083] Embodiment 4

[0084] Based on the above embodiment, a storage space can be set up separately to store the statistics of the reference counts of each installed security software, or the reference count of each installed security software can be increased by one in S201, specifically: the reference count written in the component information of the installed security software is increased by one.

[0085] The above embodiment provides a solution for implementing the logic of the multi-security software compatibility configuration method provided by the embodiment of the present application through a security software management script. In addition, the logic of the multi-security software compatibility configuration method provided by the embodiment of the present application can also be implemented in the program of each security software. That is, the security software performs statistics and changes on its own reference count according to the security software installation command or the security software uninstallation command. Specifically, when each installed security software detects the security software installation command, it controls to add one to the reference count written in its own component information; when each installed security software detects the security software uninstallation command, if it is the security software to be uninstalled, if the reference count is not zero in its own component information, a warning message of refusing to uninstall will be popped up. If it is not the security software to be uninstalled, and the security software to be uninstalled is successfully uninstalled, the reference count written in its own component information will be reduced by one.

[0086] The above describes in detail the various embodiments corresponding to the multi-security software compatibility configuration method. On this basis, the present application also discloses a multi-security software compatibility configuration device, equipment and storage medium corresponding to the above method.

[0087] Embodiment 5

[0088] Figure 3 A schematic diagram of the structure of a multi-security software compatibility configuration device provided in an embodiment of the present application.

[0089] like Figure 3 As shown, the multi-security software compatibility configuration device provided in the embodiment of the present application includes:

[0090] The installation unit 301 is used for, when receiving a security software installation command, if the device has installed security software, then when executing the security software installation command, increasing the reference count of each installed security software by one;

[0091] The first uninstallation unit 302 is configured to block the execution of the security software uninstallation command when receiving the security software uninstallation command if the reference count of the security software to be uninstalled is not zero.

[0092] Furthermore, the multi-security software compatibility configuration device provided in the embodiment of the present application may also include:

[0093] The second uninstallation unit is used to execute the security software uninstallation command if the reference count of the security software to be uninstalled is zero, and reduce the reference count of each installed security software by one.

[0094] Further, the first uninstallation unit 302 executes the security software uninstallation command, specifically:

[0095] After replacing the Hook system call function of the security software to be uninstalled pointed to by the call command in the system call table with the Hook system call function of the security software last installed before the security software to be uninstalled, the security software to be uninstalled is uninstalled.

[0096] Furthermore, the installation unit 301 increases the reference count of each installed security software by one, specifically:

[0097] The reference count of the installed security software having the same type of function as the security software to be installed of the security software installation command is increased by one.

[0098] Correspondingly, when the first uninstallation unit 302 receives the security software uninstallation command, if the reference count of the security software to be uninstalled is not zero, the execution of the security software uninstallation command is blocked, specifically:

[0099] When a security software uninstallation command is received, if the security software to be uninstalled has a function whose reference count is not zero, the execution of the security software uninstallation command is blocked.

[0100] The second uninstallation unit reduces the reference count of each installed security software by one, specifically:

[0101] The reference count of the function of the same type as the security software to be uninstalled in each installed security software is reduced by one.

[0102] Further, the installation unit 301 executes the security software installation command, specifically:

[0103] After saving the address of the Hook system call function of the most recently installed security software, the address of the Hook system call function of the security software pointed to by the call command in the system call table is replaced with the address of the Hook system call function of the security software to be installed in the security software installation command.

[0104] Further, when the installation unit 301 receives the security software installation command, if the device has installed security software, when executing the security software installation command, the reference count of each installed security software is increased by one, specifically:

[0105] When a security software installation command is received, the system component information is queried in the device system. If the system component information contains information about installed security software, the reference count of each installed security software is increased by one when the security software installation command is executed.

[0106] Furthermore, the installation unit 301 increases the reference count of each installed security software by one, specifically:

[0107] Increments the reference count written to the component information of the installed security software.

[0108] Further, when the installation unit 301 receives the security software installation command, if the device has installed security software, when executing the security software installation command, the reference count of each installed security software is increased by one, specifically:

[0109] When the running status monitoring process detects a security software installation command, the pre-deployed security software management script is called to increase the reference count of each installed security software by one when executing the security software installation command when there is security software installed on the device.

[0110] Correspondingly, when the first uninstallation unit 302 receives the security software uninstallation command, if the reference count of the security software to be uninstalled is not zero, the execution of the security software uninstallation command is blocked, specifically:

[0111] When the running status monitoring process detects a security software uninstallation command, the security software management script is called to block the execution of the security software uninstallation command when the reference count of the security software to be uninstalled is not zero.

[0112] Furthermore, the multi-security software compatibility configuration device provided in the embodiment of the present application may also include:

[0113] The alarm unit is used to generate and publish an alarm message for prohibiting the uninstallation of the security software to be uninstalled if the reference count of the security software to be uninstalled is not zero.

[0114] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0115] Embodiment 6

[0116] Figure 4 A schematic diagram of the structure of a multi-security software compatible configuration device provided in an embodiment of the present application.

[0117] like Figure 4 As shown, the multi-security software compatible configuration device provided in the embodiment of the present application includes:

[0118] A memory 410 for storing a computer program 411;

[0119] The processor 420 is used to execute the computer program 411. When the computer program 411 is executed by the processor 420, the steps of the multi-security software compatibility configuration method as described in any one of the above embodiments are implemented.

[0120] Among them, the processor 420 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 420 can be implemented in at least one hardware form of a digital signal processing DSP (Digital Signal Processing), a field programmable gate array FPGA (Field-Programmable Gate Array), and a programmable logic array PLA (Programmable Logic Array). The processor 420 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 420 may be integrated with a graphics processor GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 420 may also include an artificial intelligence AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0121] The memory 410 may include one or more storage media, which may be non-transitory. The memory 410 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 410 is at least used to store the following computer program 411, wherein the computer program 411, after being loaded and executed by the processor 420, can implement the relevant steps in the multi-security software compatibility configuration method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 410 may also include an operating system 412 and data 413, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 412 may be Windows. Data 413 may include but is not limited to the data involved in the above method.

[0122] In some embodiments, the multi-security software compatible configuration device may further include a display screen 430 , a power supply 440 , a communication interface 450 , an input and output interface 460 , a sensor 470 , and a communication bus 480 .

[0123] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the multi-security software compatible configuration device, and may include more or fewer components than shown in the figure.

[0124] The multi-security software compatibility configuration device provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the multi-security software compatibility configuration method as described above, and the effect is the same as above.

[0125] Embodiment 6

[0126] It should be noted that the above-described device and equipment embodiments are merely schematic. For example, the division of modules is merely a logical function division. There may be other division methods in actual implementation, such as multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, which may be electrical, mechanical or other forms. The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0127] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0128] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application.

[0129] To this end, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the multi-security software compatibility configuration method are implemented.

[0130] The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory ROM (Read-Only Memory), a random access memory RAM (Random Access Memory), a magnetic disk or an optical disk, and other media that can store program codes.

[0131] The computer program contained in the storage medium provided in this embodiment can implement the steps of the multi-security software compatibility configuration method as described above when executed by the processor, and the effect is the same as above.

[0132] The above is a detailed introduction to a multi-security software compatible configuration method, device, equipment and storage medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can refer to each other. For the devices, equipment and storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can refer to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

[0133] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for configuring multiple security software compatibility, characterized in that: include: When receiving a security software installation command, if the device has installed security software, when executing the security software installation command, the reference count of each installed security software is increased by one; When receiving a security software uninstallation command, if the reference count of the security software to be uninstalled is not zero, blocking the execution of the security software uninstallation command; Also includes: If the reference count of the security software to be uninstalled is zero, executing the security software uninstallation command, and reducing the reference count of each installed security software by one; The execution of the security software uninstallation command is specifically: After replacing the Hook system call function of the security software to be uninstalled pointed to by the call command in the system call table with the Hook system call function of the security software installed last before the security software to be uninstalled, uninstall the security software to be uninstalled; The execution of the security software installation command is specifically: After saving the address of the Hook system call function of the security software installed most recently, the address of the Hook system call function of the security software pointed to by the call command in the system call table is replaced with the address of the Hook system call function of the security software to be installed in the security software installation command.

2. The method for configuring multiple security software compatibility according to claim 1, characterized in that: The step of increasing the reference count of each installed security software by one is specifically as follows: Incrementing the reference count of the installed security software having the same type of function as the security software to be installed of the security software installation command by one; Correspondingly, when receiving the security software uninstallation command, if the reference count of the security software to be uninstalled is not zero, the execution of the security software uninstallation command is blocked, specifically: When receiving the security software uninstallation command, if the security software to be uninstalled has a function whose reference count is not zero, blocking the execution of the security software uninstallation command; The step of reducing the reference count of each installed security software by one is specifically as follows: The reference count of the function of the same type as the security software to be uninstalled in each of the installed security software is reduced by one.

3. The method for configuring multiple security software compatibility according to claim 1, characterized in that: When receiving the security software installation command, if the device has installed security software, when executing the security software installation command, the reference count of each installed security software is increased by one, specifically: When the security software installation command is received, the system component information is queried in the system of the device. If the system component information contains information about the installed security software, the reference count of each installed security software is increased by one when the security software installation command is executed.

4. The method for configuring multiple security software compatibility according to claim 1, characterized in that: The step of increasing the reference count of each installed security software by one is specifically as follows: The reference count written into the component information of the installed security software is increased by one.

5. The method for configuring multiple security software compatibility according to claim 1, characterized in that: When receiving the security software installation command, if the device has installed security software, when executing the security software installation command, the reference count of each installed security software is increased by one, specifically: When the running status monitoring process detects the security software installation command, the pre-deployed security software management script is called to increase the reference count of each installed security software by one when executing the security software installation command when the installed security software exists on the device; Correspondingly, when receiving the security software uninstallation command, if the reference count of the security software to be uninstalled is not zero, the execution of the security software uninstallation command is blocked, specifically: When the status monitoring process is running and the security software uninstallation command is monitored, the security software management script is called to block the execution of the security software uninstallation command when the reference count of the security software to be uninstalled is not zero.

6. The method for configuring multiple security software compatibility according to claim 1, characterized in that: Also includes: If the reference count of the security software to be uninstalled is not zero, a warning message prohibiting uninstallation of the security software to be uninstalled is generated and issued.

7. A device for configuring multiple security software compatibility, characterized in that: include: An installation unit, configured to, when receiving a security software installation command, increase a reference count of each installed security software by one when executing the security software installation command if the device has installed security software; A first uninstallation unit, configured to, when receiving a security software uninstallation command, block execution of the security software uninstallation command if the reference count of the security software to be uninstalled is not zero; Also includes: A second uninstallation unit, configured to execute a security software uninstallation command if the reference count of the security software to be uninstalled is zero, and reduce the reference count of each installed security software by one; The first uninstallation unit executes the security software uninstallation command, specifically: After replacing the Hook system call function of the security software to be uninstalled pointed to by the call command in the system call table with the Hook system call function of the security software installed last before the security software to be uninstalled, uninstall the security software to be uninstalled; The installation unit executes the security software installation command, specifically: After saving the address of the Hook system call function of the most recently installed security software, the address of the Hook system call function of the security software pointed to by the call command in the system call table is replaced with the address of the Hook system call function of the security software to be installed in the security software installation command.

8. A multi-security software compatible configuration device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the multi-security software compatibility configuration method as described in any one of claims 1 to 6 are implemented.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the multi-security software compatibility configuration method as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Software unloading method, device and equipment and storage medium

    CN110399138A

  • Method and system for improving software compatibility for linux system

    CN111736851A

  • Method and system for avoidance of software conflict

    US20070180441A1