[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#705056: /etc/default/devpts instructions to set "mesg n" by default don't work



Package: initscripts,libc6

/etc/default/devpts reads:
# Set to 600 to have `mesg n' be the default
TTYMODE=620

But this doesn't really work. Even if you mount /dev/pts with mode=600, your pty devices will end up with 620 permissions. This is because well-behaved software calls grantpt(), which changes the device permissions.

Either grantpt() should be fixed not to touch permissions if /dev/pts is a devpts fs (as it did in the past[0]) or initscripts should be fixed not to claim you can have "mesg n" by default.


[0] http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=292e3abebff9f94ca47c1a725a691cb6ed6cff5f

--
Jakub Wilk


Reply to: