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

Bug#705056: marked as done (/etc/default/devpts instructions to set "mesg n" by default don't work)



Your message dated Fri, 26 Jul 2019 16:39:41 +0200
with message-id <20190726143941.padkhqxgwo7ddcy5@jwilk.net>
and subject line Re: Bug#705056: /etc/default/devpts instructions to set "mesg n" by default don't work
has caused the Debian Bug report #705056,
regarding /etc/default/devpts instructions to set "mesg n" by default don't work
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
705056: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705056
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Source: glibc
Source-Version: 2.21-4

[2013-04-09 17:13] Jakub Wilk <jwilk@debian.org>
/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.
[...]
* Dmitry Bogatov <KAction@debian.org>, 2019-07-25, 19:07:
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.

This has been fixed in glibc; see bug #806882.

--
Jakub Wilk

--- End Message ---

Reply to: