mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
LXC: controller: change the owner of /dev/pts and ptmx to the root of container
These files are created for container, the owner should be the root user of container. Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
This commit is contained in:
parent
a591ae6068
commit
6c7665e150
@ -1548,6 +1548,10 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if ((virLXCControllerChown(ctrl, ctrl->devptmx) < 0) ||
|
||||
(virLXCControllerChown(ctrl, devpts) < 0))
|
||||
goto cleanup;
|
||||
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
|
Loading…
x
Reference in New Issue
Block a user