Bug#817236: schroot: no access to pseudo-terminals in new chroots
On Sun, 26 Feb 2017 at 14:31:31 +0000, Simon McVittie wrote:
> * schroot/1.6.10-3:
> - sbuild profile: bind-mounts host /dev/pts only
> + in the real device node case, we're fine
Actually no - running script inside schroot inside an lxc container on a
jessie kernel, with lxc from jessie-backports, fails an openpty call with
"Operation not permitted" (EPERM). I'm not sure why: /dev/ptmx and
/dev/pts/ptmx are both char 5,2 device nodes with 0666 permissions.
Perhaps running schroot inside lxc makes no sense anyway? But mounting
a new /dev/pts, like pbuilder does, works fine.
In any case, this doesn't block my proposed patch, which doesn't make the
situation any worse.