The newly-released ClamAV 0.85 seems to have problem starting if not
running as root.

[EMAIL PROTECTED]:~# /usr/sbin/clamav-milter -C -f -N -q -m 20 --pidfile
/var/run/clamav-milter.pid -U /var/spool/virusmails
/var/run/clamav-milter.sock
[EMAIL PROTECTED]:~# /dev/console: Permission denied

[EMAIL PROTECTED]:~# ls -l /dev/console
crw-------    1 root     tty        5,   1 May  4 00:39 /dev/console
[EMAIL PROTECTED]:~#

    I run devfs.  My clamav-milter run as daemon.  /dev/console is
created automatically each time my server is rebooted.  It's non-sense
for me to "chmod 666(or 660) /dev/consone".  I wonder if its OK to allow
wider permission to the console, too.

    I traced the code.  It seems that in 0.85 clamav-milter.c tries to
open /dev/console when LogFile is not set, no matter if /dev/console is
available or not.  In 0.84 it fall back to /dev/null when /dev/console
is not available.  May someone tell me why this fallback is removed?
Besides, I'm logging with LogSyslog.  That should be consider a safe
situation not to open /dev/console, too.

    I attached a patch to not open /dev/console when LogSyslog is
set.  But I still think /dev/null fallback should be done since people
relying on devfs may not always have a permitted /dev/console.  Could
someone answer this question here?

--
Best regards,
imacat ^_*' <[EMAIL PROTECTED]>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt

<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://www.linux.org.tw/mailman/listinfo/tlug

Attachment: pgpjKzKHh9VoD.pgp
Description: PGP signature

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to