]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mesg: remove ability to compile with fchmod(S_IWOTH)
authorKarel Zak <kzak@redhat.com>
Fri, 15 Nov 2024 10:53:37 +0000 (11:53 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 15 Nov 2024 10:53:37 +0000 (11:53 +0100)
commit2362bfa5fcb26275aae1c6c06046b35186220f46
tree1f197b59ae0b237e931aba33c24ec7a9099a77b8
parent8a4082068dc40900711e1e749a8dbf921efb0e5d
mesg: remove ability to compile with fchmod(S_IWOTH)

The default is to use mesg(1) to modify write access for the "tty"
group, but there is an obscure legacy. If mesg(1) is compiled with the
option "--disable-use-tty-group", then it defaults to using
fchmod(S_IWGRP | S_IWOTH). This means that your tty is then writable
for everyone. Let's get rid of this ugly feature.

Reported-by: Chris Hofstaedtler <zeha@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.1.adoc
term-utils/mesg.1.adoc
term-utils/mesg.c