Am 26.06.2015 um 15:09 schrieb Martin Kletzander:
On Tue, Jun 23, 2015 at 04:38:57PM +0200, Richard Weinberger wrote:
> Instead of creating symlinks, bind mount the devices to
> /dev/pts/XY.
> Using bind mounts it is no longer needed to add pts devices
> to files like /dev/securetty.
>
I guess you meant /etc/securetty.
Lol, yes. :-)
This patch makes sense, but if I start a container that I
couldn't
login as a root into (because of securetty), it still doesn't help, I
still can't login. Moreover, if I stop it and start it few times and
restart the daemon (I'm not sure whether that's needed, it's just that
I had to switch between gdb and non-gdb daemons and it happened only
sometimes), I get this:
error: internal error: guest failed to start: unexpected exit status 125
The error in log is:
libvirt: error : failed to setup stdout file handle: Bad file descriptor
I briefly looked at it and *cmd->outfdptr has the value of 247083264
which is nowhere in the output of lsof for that process. I know that
it doesn't sounds even remotely related, but without this patch that
doesn't happen. Maybe it just uncovers some error rotting there for a
long time...
Hmm, very strange. What guest container are you using?
I tried with a Debian jessi and had user namespace enabled.
Thanks,
//richard