Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108250 - static /dev/tty and /dev/ptmx should have permissions 0666
Summary: static /dev/tty and /dev/ptmx should have permissions 0666
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-06 01:03 UTC by Ulrich Müller
Modified: 2005-10-06 19:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch for MAKEDEV (MAKEDEV.diff,841 bytes, patch)
2005-10-06 01:04 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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