Patent ID: 9609063
Date: 2017-03-28
CPC Classifications: G06F,H04L

Claim:
1. A method for logging in a Unix-type virtual container, comprising: establishing a corresponding relationship between a Unix-type virtual container and a port on a host running the Unix-type virtual container; establishing a pipe between the Unix-type virtual container and the host port based on the corresponding relationship, and establishing a first connection between the Unix-type virtual container and the host port based on the pipe; and receiving a script command through the host port, and sending the script command to the Unix-type virtual container according to the first connection; wherein after receiving the script command through the host port and before sending the script command to the Unix-type virtual container, the method further comprises: partitioning the script command according to a preset marker and performing symbol extension to the partitioned script command to obtain a symbol-extended script command; determining whether the symbol-extended script command is included in a preset script command whitelist; and in response to determining that the symbol-extended script command is included in the preset script command whitelist, sending the symbol-extended script command to the Unix-type virtual container according to the first connection.