2011-06-20 07:53:05 |
Javier Amor Garcia |
bug |
|
|
added bug |
2011-06-20 07:53:05 |
Javier Amor Garcia |
attachment added |
|
clamav-daemon https://bugs.launchpad.net/bugs/799623/+attachment/2175575/+files/clamav-daemon |
|
2011-06-21 13:17:16 |
Chuck Short |
clamav (Ubuntu): importance |
Undecided |
Low |
|
2011-06-21 13:17:16 |
Chuck Short |
clamav (Ubuntu): status |
New |
Confirmed |
|
2011-07-04 22:41:44 |
Jorge Salamero Sanz |
bug |
|
|
added subscriber Jorge Salamero Sanz |
2012-03-17 22:01:09 |
Skilly |
bug watch added |
|
http://trac.zentyal.org/ticket/2596 |
|
2012-03-17 22:01:09 |
Skilly |
bug task added |
|
altlinux |
|
2012-03-17 22:01:46 |
Skilly |
bug |
|
|
added subscriber Skilly |
2012-03-17 22:37:50 |
Bug Watch Updater |
altlinux: status |
Unknown |
Invalid |
|
2013-03-27 13:16:43 |
fatbob |
attachment added |
|
clamd.conf from system with broken clam logrotate settings https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/799623/+attachment/3600750/+files/clamd.conf |
|
2013-09-25 15:01:58 |
Adam Stokes |
nominated for series |
|
Ubuntu Precise |
|
2013-09-25 15:01:58 |
Adam Stokes |
bug task added |
|
clamav (Ubuntu Precise) |
|
2013-09-25 15:01:58 |
Adam Stokes |
nominated for series |
|
Ubuntu Quantal |
|
2013-09-25 15:01:58 |
Adam Stokes |
bug task added |
|
clamav (Ubuntu Quantal) |
|
2013-09-25 15:01:58 |
Adam Stokes |
nominated for series |
|
Ubuntu Raring |
|
2013-09-25 15:01:58 |
Adam Stokes |
bug task added |
|
clamav (Ubuntu Raring) |
|
2013-10-04 00:02:57 |
Launchpad Janitor |
clamav (Ubuntu Precise): status |
New |
Confirmed |
|
2013-10-04 00:02:57 |
Launchpad Janitor |
clamav (Ubuntu Quantal): status |
New |
Confirmed |
|
2013-10-04 00:02:57 |
Launchpad Janitor |
clamav (Ubuntu Raring): status |
New |
Confirmed |
|
2014-02-10 15:06:36 |
Louis Bouchard |
clamav (Ubuntu): assignee |
|
Louis Bouchard (louis-bouchard) |
|
2014-02-10 15:06:39 |
Louis Bouchard |
clamav (Ubuntu Precise): assignee |
|
Louis Bouchard (louis-bouchard) |
|
2014-02-10 15:06:42 |
Louis Bouchard |
clamav (Ubuntu Raring): assignee |
|
Louis Bouchard (louis-bouchard) |
|
2014-02-10 15:06:44 |
Louis Bouchard |
clamav (Ubuntu Quantal): assignee |
|
Louis Bouchard (louis-bouchard) |
|
2014-02-10 15:06:45 |
Louis Bouchard |
clamav (Ubuntu Precise): importance |
Undecided |
Low |
|
2014-02-10 15:06:48 |
Louis Bouchard |
clamav (Ubuntu Quantal): importance |
Undecided |
Low |
|
2014-02-10 15:06:50 |
Louis Bouchard |
clamav (Ubuntu Raring): importance |
Undecided |
Low |
|
2014-02-10 15:06:54 |
Louis Bouchard |
clamav (Ubuntu): status |
Confirmed |
In Progress |
|
2014-02-10 15:06:57 |
Louis Bouchard |
clamav (Ubuntu Precise): status |
Confirmed |
In Progress |
|
2014-02-10 15:07:00 |
Louis Bouchard |
clamav (Ubuntu Quantal): status |
Confirmed |
In Progress |
|
2014-02-10 15:07:02 |
Louis Bouchard |
clamav (Ubuntu Raring): status |
Confirmed |
In Progress |
|
2014-02-10 16:59:25 |
Launchpad Janitor |
branch linked |
|
lp:~louis-bouchard/ubuntu/trusty/clamav/lp799623_fix_logrotate |
|
2014-02-11 11:06:22 |
Louis Bouchard |
description |
Binary package hint: clamav-daemon
Version: 0.96.5+dfsg-1ubuntu1.10.04.2
Sometimes the logrotate conf file (/etc/logrotate.d/clamav-daemon) is incorrectly generated, with a '0' instead of '/var/log/clamav/clamav.log'. See the attached file for a example of bad configuration.
I suspect the root cause is in the clamav-daemon.postinst script. In the 'configure' case the logrotate conf file could be generated and I feel the variable 'LogFile' is with a bad value thus printing like "0" in the conf file.
Cheers,
Javier |
SRU justification :
Without this fix, installation scripts can generate invalid configuration files
(i.e. logrotate.d/clamav-damemon)
Impact :
Invalid configuration files
Fix :
Make the parsing algorithm a bit more discriminative
Test Case :
1) install clamav & clamav-daemon
$ sudo apt-get -y install clamav clamav-daemon
2) Add the following line before the first LogFile statement
LogFileMaxSize 0
3) Deinstall without purging the config file
apt-get -y remove clamav clamav-daemon clamav-base clamav-freshclam libclamav6
4) Re-install clamav & clamav-daemon & keep the existing config file
apt-get -y install clamav clamav-daemon clamav-base clamav-freshclam libclamav6
The clamav-daemon file should look like this (which is wrong) :
0 {
rotate 12
weekly
compress
delaycompress
create 640 clamav adm
postrotate
/etc/init.d/clamav-daemon reload-log > /dev/null
endscript
}
The correct format of the file should be :
/var/log/clamav/clamav.log {
rotate 12
weekly
compress
delaycompress
create 640 clamav adm
postrotate
/etc/init.d/clamav-daemon reload-log > /dev/null
endscript
}
Regression :
None expected, the values returned are still valid.
Original description of the problem :
Binary package hint: clamav-daemon
Version: 0.96.5+dfsg-1ubuntu1.10.04.2
Sometimes the logrotate conf file (/etc/logrotate.d/clamav-daemon) is incorrectly generated, with a '0' instead of '/var/log/clamav/clamav.log'. See the attached file for a example of bad configuration.
I suspect the root cause is in the clamav-daemon.postinst script. In the 'configure' case the logrotate conf file could be generated and I feel the variable 'LogFile' is with a bad value thus printing like "0" in the conf file.
Cheers,
Javier |
|
2014-02-11 11:07:07 |
Louis Bouchard |
attachment added |
|
lp799623_fix_logrotate_precise.debdiff https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/799623/+attachment/3977076/+files/lp799623_fix_logrotate_precise.debdiff |
|
2014-02-11 11:07:33 |
Louis Bouchard |
attachment added |
|
lp799623_fix_logrotate_saucy.debdiff https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/799623/+attachment/3977077/+files/lp799623_fix_logrotate_saucy.debdiff |
|
2014-02-11 11:07:53 |
Louis Bouchard |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2014-02-11 11:08:03 |
Louis Bouchard |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2014-02-12 15:11:08 |
Martin Pitt |
clamav (Ubuntu Raring): status |
In Progress |
Won't Fix |
|
2014-02-12 15:31:32 |
Martin Pitt |
clamav (Ubuntu): status |
In Progress |
Fix Committed |
|
2014-02-12 15:32:26 |
Martin Pitt |
clamav (Ubuntu Quantal): status |
In Progress |
Won't Fix |
|
2014-02-12 15:32:29 |
Martin Pitt |
removed subscriber Ubuntu Sponsors Team |
|
|
|
2014-02-12 16:05:18 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/trusty-proposed/clamav |
|
2014-02-12 16:49:42 |
Launchpad Janitor |
clamav (Ubuntu): status |
Fix Committed |
Fix Released |
|
2014-02-27 22:15:27 |
Brian Murray |
clamav (Ubuntu Precise): status |
In Progress |
Fix Committed |
|
2014-02-27 22:15:33 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2014-02-27 22:15:42 |
Brian Murray |
tags |
logrotate |
logrotate verification-needed |
|
2014-02-27 22:40:18 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/precise-proposed/clamav |
|
2014-02-27 23:03:32 |
Chris J Arges |
nominated for series |
|
Ubuntu Saucy |
|
2014-02-27 23:03:32 |
Chris J Arges |
bug task added |
|
clamav (Ubuntu Saucy) |
|
2014-02-27 23:03:46 |
Chris J Arges |
clamav (Ubuntu Saucy): assignee |
|
Louis Bouchard (louis-bouchard) |
|
2014-02-27 23:03:49 |
Chris J Arges |
clamav (Ubuntu Saucy): importance |
Undecided |
Low |
|
2014-02-27 23:03:52 |
Chris J Arges |
clamav (Ubuntu Saucy): status |
New |
In Progress |
|
2014-02-28 16:37:40 |
Brian Murray |
clamav (Ubuntu Saucy): status |
In Progress |
Fix Committed |
|
2014-02-28 17:08:26 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/saucy-proposed/clamav |
|
2014-03-05 22:23:46 |
Launchpad Janitor |
branch linked |
|
lp:debian/clamav |
|
2014-03-13 12:07:28 |
Louis Bouchard |
tags |
logrotate verification-needed |
logrotate verification-done |
|
2014-03-13 21:51:41 |
Launchpad Janitor |
clamav (Ubuntu Precise): status |
Fix Committed |
Fix Released |
|
2014-03-13 21:51:48 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2014-03-13 21:54:42 |
Launchpad Janitor |
clamav (Ubuntu Saucy): status |
Fix Committed |
Fix Released |
|
2014-03-13 22:36:21 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/precise-updates/clamav |
|
2014-03-27 17:04:42 |
Launchpad Janitor |
clamav (Ubuntu Quantal): status |
Won't Fix |
Fix Released |
|