At 1:59 PM +0400 5/12/09, Dmitry Morozovsky wrote: >Dear colleagues, > >for now, if log is configured to be rotated in time manner, its size is not >checked, so /var/log may be DoSed by some service (in our case, it >was mad DHCP client which fills up our /var/log with dhcpd log; our >newsyslog.conf >line was > >/var/log/dhcpd 640 5 5000 _at_T00 JC > >The following simple patch should fix the problem. Any objection to commit >this? It would fix your problem, but it changes the behavior as is explicitly documented in 'man newsyslog.conf' . There is a paragraph in the man page which makes it clear that if both fields are specified, then the log file will only be rotated if both conditions are true. I agree that newsyslog needs some way to specify an "either/or" combination of those fields. I believe I have some time to look into changes to newsyslog right this week, so I'll see what is needed to address this issue. -- Garance Alistair Drosehn = drosehn_at_rpi.edu Senior Systems Programmer or gad_at_FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USAReceived on Tue May 12 2009 - 16:26:11 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:47 UTC