[lkml]   [1996]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectWhat permissions for /dev/pty?? and /dev/tty??
Hello all,

What permissions should I have on /dev/pty?? and /dev/tty?? ?

MAKEDEV-C-2.2 has /dev/pty?? owned by root.root with permission 666, and
/dev/tty?? owned by root.tty with permission 620. I know why this makes
sense with login, xterm, etc., but it prevents non-setuid user processes
(like Emacs) from opening a pty/tty pair.

To solve this, I give /dev/tty?? permissions 666, but this completely
wrecks tty security. Is there a clean solution? Perhaps there is a
need for /proc/tty/tty?? or similar, which are automatically created and
inherit ownership when /dev/pty?? are opened.

-- Jamie

 \ /
  Last update: 2005-03-22 13:37    [W:0.022 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site