主权项 |
1. A method for controlling an access of a native image of a machine code to resources of an operating system of a device, the method comprising:
obtaining, by a processor, the native image of the machine code; identifying, by the processor, a parent assembly from which the native image was created; determining and forming, by the processor, a correspondence between the native image and the parent assembly based at least upon a template; in response to detecting an update to the native image, generating, by the processor, an updated image of the native image; determining, by the processor, whether there is a correspondence between the updated image of the native image and the parent assembly based at least upon the template; and in response to detecting no correspondence between the updated image of the native image and the parent assembly, restricting, by the processor, an access of the updated image of the native image to the resources of the operating system of the device. |