These files are created for container,
the owner should be the root user of container.

Signed-off-by: Gao feng <gaof...@cn.fujitsu.com>
---
 src/lxc/lxc_controller.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c
index dd85235..d12c4c2 100644
--- a/src/lxc/lxc_controller.c
+++ b/src/lxc/lxc_controller.c
@@ -1548,6 +1548,10 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl)
         goto cleanup;
     }
 
+    if ((virLXCControllerChown(ctrl, ctrl->devptmx) < 0) ||
+        (virLXCControllerChown(ctrl, devpts) < 0))
+         goto cleanup;
+
     ret = 0;
 
 cleanup:
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to