摘要 |
Examples of the present disclosure provide a safety protection method, a firewall, a terminal device and a computer-readable storage medium. According to the method, a firewall injects a code module including a first function capable of modifying package safety information corresponding to an illegal application into a target process, and triggers the first function to modify the package safety information corresponding to the illegal application to make the illegal application fail to perform an operation due to the modified package safety information. Various examples of the present disclosure inject a code module capable of modifying package safety information into a target process to modify package safety information corresponding to an illegal application so that the illegal application fails to perform an operation due to the modified package safety information. Therefore, firewall functions are realized in a terminal device even when the terminal device does not have an iptable/netfilter module. Further, there is no compatibility problem and the mechanism is not restricted by firmware versions. |