Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174512 - clamav init script chowns freshclam.log to wrong user
Summary: clamav init script chowns freshclam.log to wrong user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-13 20:24 UTC by Jeremy Huddleston (RETIRED)
Modified: 2007-04-13 20:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
clamav.rc.patch (clamav.rc.patch,855 bytes, patch)
2007-04-13 20:25 UTC, Jeremy Huddleston (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston (RETIRED) gentoo-dev 2007-04-13 20:24:41 UTC
The init script was recently updated to chown the log files on startup.  It incorrectly chowns the freshclam.log file to the user running clamd, not the user running freshclam:

I have user clamav run freshclamd and user amavis run clamd.

 * Caching service dependencies ...                                                                                                                                                                                                                                                                            [ ok ]
 * Stopping clamd ...                                                                                                                                                                                                                                                                                          [ ok ]
 * Stopping freshclam ...                                                                                                                                                                                                                                                                                      [ ok ]
 * Starting clamd ...
Running as user amavis (UID 109, GID 1018)                                                                                                                                                                                                                                                                     [ ok ]
 * Starting freshclam ...
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
 * Failed to start freshclam                                                                                                                                                                                                                                                                                   [ !! ]
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2007-04-13 20:25:05 UTC
Created attachment 116188 [details, diff]
clamav.rc.patch

Here's the fix.
Comment 2 Andrej Kacian (RETIRED) gentoo-dev 2007-04-13 20:57:28 UTC
Ah, right - look like I missed that and just assumed the same user as for clamd. Applied, thanks!