Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 108250

Summary: static /dev/tty and /dev/ptmx should have permissions 0666
Product: Gentoo Linux Reporter: Ulrich Müller <ulm>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed patch for MAKEDEV

Description Ulrich Müller gentoo-dev 2005-10-06 01:03:26 UTC
/sbin/MAKEDEV generates /dev/tty with permissions 0660.
However, preventing a process from accessing its controlling terminal makes no
sense, so /dev/tty should be world accessible.

In addition, udev has owner root:tty and permissions 0666 for /dev/tty.
Static /dev should be consistent with udev.

Similar arguments apply to /dev/ptmx.
Comment 1 Ulrich Müller gentoo-dev 2005-10-06 01:04:33 UTC
Created attachment 69971 [details, diff]
Proposed patch for MAKEDEV
Comment 2 SpanKY gentoo-dev 2005-10-06 19:00:43 UTC
this has been fixed in trunk already, just needed to merge it back to the
branches which ive done in svn now

crw-rw-rw-  1 root tty 5, 2 Oct  6 21:56 ptmx
crw-rw-rw-  1 root tty 5, 0 Oct  6 21:56 tty
crw-------  1 root tty 4, 0 Oct  6 21:56 tty0
crw-------  1 root tty 4, 1 Oct  6 21:56 tty1
crw-------  1 root tty 4, 2 Oct  6 21:56 tty2
crw-------  1 root tty 4, 3 Oct  6 21:56 tty3
crw-------  1 root tty 4, 4 Oct  6 21:56 tty4
crw-------  1 root tty 4, 5 Oct  6 21:56 tty5
crw-------  1 root tty 4, 6 Oct  6 21:56 tty6
crw-------  1 root tty 4, 7 Oct  6 21:56 tty7
crw-------  1 root tty 4, 8 Oct  6 21:56 tty8
crw-------  1 root tty 4, 9 Oct  6 21:56 tty9