[Bug 1242913] Re: /dev/pts being created with mode=600 by Lxc

John Peacock jpeacock at messagesystems.com
Tue Oct 22 13:50:55 UTC 2013


Rebuilding IO::Tty on a system which lacks grantpt() and pt_chown()
fixed the problem with the script not being able to create a pty.

So the only remaining piece is to understand why /dev/pts is being
chowned to root:root.  Looking at src/lxc/conf.c, I can see where that
directory is being created.  This isn't specific to Centos; it happens
equally with Ubuntu instances.

The attached patch (soon to be submitted upstream) appears to be a belts
and braces approach to ensure that the /dev/pts directory has the
correct group ownership.  Using both patches completely fixes this bug
for me.

** Patch added: "0013-ubuntu-Improper-pty-group.patch"
   https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1242913/+attachment/3887396/+files/0013-ubuntu-Improper-pty-group.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1242913

Title:
  /dev/pts being created with mode=600 by Lxc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1242913/+subscriptions



More information about the Ubuntu-server-bugs mailing list