[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/47449: syslogd doesn't honor mesg n
>Synopsis: syslogd doesn't honor mesg n
>Arrival-Date: Tue Jan 15 05:25:00 +0000 2013
>Originator: David A. Holland
>Release: NetBSD 6.99.16 (20120115)
System: NetBSD macaran 6.99.11 NetBSD 6.99.11 (MACARAN) #15: Mon Oct 15
21:24:31 EDT 2012 dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN
syslogd does not honor mesg n (g+w permission) on the ttys of users it
sends logs to.
This is a nuisance sometimes.
Create a test user, add it as a destination in syslog.conf (e.g.
cron.* testuser), log in, set mesg n, and watch the messages roll in
As syslogd runs as root it needs to explicitly check for g+w
permission, instead of just using the same tty message code as other
things and assuming it'll get EACCES when mesg n is set.
Probably it should also override mesg n for LOG_EMERG messages, which
are traditionally walled to everyone.
Main Index |
Thread Index |