摘要 |
Disclosed are a secure networking method based on network isolation, and terminal. The method comprises: according to network resources, isolating at least one first namespace and second namespace; receiving a process creation request corresponding to an application, wherein the process is requesting data from an external network or transmitting data to the external network; according to a set to which a package name of the application belongs or a domain from which the process creation request originates, determining that the process belongs to the second namespace; and connecting to the external network via a mobile data network, to request or transmit the data. Also disclosed is a corresponding terminal. The present invention isolates at least two mutually independent network environments by using a namespace mechanism provided by a kernel. In a secure network environment, a terminal can connect to a network merely by a mobile data network. An appropriate networking method can be selected for the terminal, and a secure networking is ensured, thereby guaranteeing information security of the terminal. |