Method and Device for Intercepting Call for Service by Application
First Claim
1. A method for intercepting a call for a service by an application in an operating system of an electronic apparatus comprising:
- loading, by at least one processor, an interception dynamic link library to a process where the service is located;
replacing, by the at least one processor, an address of an input/output control function in the process with a first address of the interception dynamic link library;
when the application is calling the service, executing, by the at least one processor, the interception dynamic link library based on the first address to as to obtain a name and information of the application and information of the call, and replacing an address of the service to be called included in the information of the call with a second address of the interception dynamic link library; and
executing, by the at least one processor, processing based on the second address according to at least one of the name and information of the application.
2 Assignments
0 Petitions
Accused Products
Abstract
Disclosed are a method and a device for intercepting a call for a service by an application in an operating system of an electronic apparatus. The method comprises: loading an interception dynamic link library to a process where the service is located; replacing the address of an input/output control function in the process with a first address of the interception dynamic link library; when the application is calling the service, executing the interception dynamic link library based on the first address so as to obtain the name and information of the application as well as the information of the call, and replacing the address of the service to be called comprised in the information of the call with a second address of the interception dynamic link library; and executing processing based on the second address according to the name and/or information of the application. The invention increases the security of the operating system of the electronic apparatus.
18 Citations
23 Claims
-
1. A method for intercepting a call for a service by an application in an operating system of an electronic apparatus comprising:
-
loading, by at least one processor, an interception dynamic link library to a process where the service is located; replacing, by the at least one processor, an address of an input/output control function in the process with a first address of the interception dynamic link library; when the application is calling the service, executing, by the at least one processor, the interception dynamic link library based on the first address to as to obtain a name and information of the application and information of the call, and replacing an address of the service to be called included in the information of the call with a second address of the interception dynamic link library; and executing, by the at least one processor, processing based on the second address according to at least one of the name and information of the application. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 23)
-
-
11. A device for intercepting a call for a service by an application in an operating system of an electronic apparatus comprising:
at least one processor to execute; a loading module configured to load an interception dynamic link library to a process where the service is located; a first replacing module configured to replace an address of an input/output control function in the process with a first address of the interception dynamic link library; a second replacing module configured to, when the application is calling the service, execute the interception dynamic link library based on the first address to obtain a name and information of the application and information of the call, and replace an address of the service to be called included in the information of the call with a second address of the interception dynamic link library; and a processing module configured to execute processing based on the second address according to at least one of the name and information of the application. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18)
-
19-21. -21. (canceled)
-
22. A non-transitory computer readable medium having instructions stored thereon that, when executed by at least one processor, cause the at least one processor to perform operations for intercepting a call for a service by an application in an operating system of an electronic apparatus comprising:
-
loading an interception dynamic link library to a process where the service is located; replacing an address of an input/output control function in the process with a first address of the interception dynamic link library; when the application is calling the service, executing the interception dynamic link library based on the first address to obtain a name and information of the application and the information of the call, and replacing an address of the service to be called included in the information of the call with a second address of the interception dynamic link library; and executing processing based on the second address according to at least one of the name and information of the application.
-
Specification