OpenSolaris

Printable Version Enter a New Search
Bug ID 6474418
Synopsis opens of linux pts devices are broken for non-root users
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:brandz
Keywords
Responsible Engineer Edward Pilatowicz
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_50
Fixed In snv_50
Release Fixed solaris_nevada(snv_50)
Related Bugs
Submit Date 22-September-2006
Last Update Date 19-January-2007
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.
Work Around
N/A
Comments
N/A