[lxc-users] unprivilaged lxc-execute: "Failed to shift tty into container"

Mart Kelder mart at kelder31.nl
Mon Dec 18 18:27:04 UTC 2017


Hi all,

I try to lxc-execute a container I created myself. I attached the log
messages and the strace file. If I run the command with strace and try
to replay it, it seems to work correctly [1]. What is the next step to
investigate this? Where is my test-session ([1]) different then the
strace file? I use lxc-2.1.1 and lxcfs-2.0.8 (with pam_cgfs).

Thanks,

Mart

[1]
I tried "cat /dev/ptmx" in a seperate console. It created a device
/dev/pts/5.
Then I executed the following commands (with results):
$ chgrp 1002 /dev/pts/5
$ "lxc-usernsexec" "-m" "u:0:100000:1" "-m" "u:1002:1002:1", "-m"
"g:0:100000:1" "-m" "g:5:100005:1" "-m" "g:1002:1002:1" "--" "chown"
"0:5" "/dev/pts/5"
$ ls -l /dev/pts/5
crw--w---- 1 100000 100005 136, 5 17 dec 12:20 /dev/pts/5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minportage.log.tar.gz
Type: application/x-compressed-tar
Size: 14694 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20171218/717a9190/attachment.bin>


More information about the lxc-users mailing list