CPC G06F 9/545 (2013.01) [G06F 9/45545 (2013.01); G06F 21/6218 (2013.01); H04L 67/34 (2013.01)] | 20 Claims |
1. An electronic device, comprising:
a memory; and
at least one processor coupled to the memory, wherein the at least one processor is configured to:
identify a device change event in a host operating system, wherein the device change event includes, at a runtime of one or more containers, enabling or disabling a device used by the host operating system, wherein the host operating system includes a host namespace;
switch, in response to the device change event, a container controller from the host namespace to a container namespace of a container of the one or more containers; and
update, using the container controller switched to the container namespace, the container with information based on the device change event;
wherein, to update the container, the at least one processor is configured to:
when the device change event includes enabling the device in the host operating system, create at least one device access point corresponding to the device and mount the at least one device access point to the container; and
when the device change event includes disabling the device in the host operating system, delete the at least one device access point corresponding to the device from the container.
|