|
Description
|
i recently noticed that if i try to allocate pts devices as a non-root user
then it fails. this can be seen as failures to launch xterms or run screen.
here's an example:
---8<---
edp@secrassic$ xterm
xterm: Error 18, errno 13: Permission denied
Reason: spawn: open() failed on ptsname
---8<---
the problem is caused by the fact that the lx emulation code never
invokes the PT_OWNER ioctl to update the ownership of the pts device
associed with an open ptm device. This needs to be done when servicing
the linux grant pt ioctl (TIOCGPTN).
This problem is essentially a mismerge with the devnames project.
My original prototype merge had this change, but i forgot
to include it it in the final merge.
|