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

2019-07-25 Thread Dmitry Bogatov


control: tags -1 +moreinfo +unreproducible

[2013-04-09 17:13] Jakub Wilk 
> 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.

I just tried this -- remounted /dev/pts with mode=600 and started
dvtm(1) and stterm(1). This resulted in /dev/pts/{0,1} with $USER:tty,
600. So to be `TTYMODE' seems to work.

Did I miss something?
-- 
Note, that I send and fetch email in batch, once in a few days.
Please, mention in body of your reply when you add or remove recepients.



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

2013-04-09 Thread Jakub Wilk

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


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org