Displaying 1 result from an estimated 1 matches for "fake_messag".
Did you mean:
fake_message
1997 Feb 18
0
Abuse of the syslog facility
...slog(LOG_ERR, mesg1);
syslog(LOG_ERR, mesg2);
syslog(LOG_ERR, mesg3);
closelog();
}
---------------------------------
If one does "chmod o-rw /dev/log" that stops the above message from ending
up in the log. However if the user runs the above in a tight loop,
i.e. "while true; do fake_message;done" then syslogd apparently can''t
keep up and by definition of LOG_CONS (man 3 syslog) one has:
LOG_CONS
write directly to system console if there is an
error while sending to system logger
and hence the console gets *flooded* with fake mess...