#868099 rkhunter: clean up legacy conffile

Package:
rkhunter
Source:
rkhunter
Submitter:
Christoph Anton Mitterer
Date:
2018-12-13 01:54:03 UTC
Severity:
normal
#868099#5
Date:
2017-07-12 00:50:27 UTC
From:
To:
Hi.

Apparently the package used to contain:
/etc/default/rkhunter
as a dpkg conffile but no longer does and ships it manually managed instead.

This file was however not properly cleaned up as conffile and is still marked as such.
Could you please to so in one of the next versions, so that
people will get the clean up? :-)

Thanks,
Chris.

#868099#10
Date:
2017-07-12 01:29:45 UTC
From:
To:
Do you know what the correct to do this is?

Francois

#868099#15
Date:
2017-07-13 22:41:22 UTC
From:
To:
Uhm... sorry... not really...
Perhaps something like backuping the current file, then using dpkg-
maintscript-helper rm_conffile to remove the conffile, and then move
the backup back as manually managed file.

But really better ask at d-d on how to do it... there is likely a
proper way for it and the above is easily prone to /tmp attacks and so.


Cheers,
Chris.

#868099#20
Date:
2018-12-13 01:38:43 UTC
From:
To:
For rkhunter 1.4.2-6+deb9u1

% cat /var/lib/dpkg/info/rkhunter.conffiles
/etc/apt/apt.conf.d/90rkhunter
/etc/cron.daily/rkhunter
/etc/cron.weekly/rkhunter
/etc/logcheck/ignore.d.server/rkhunter
/etc/logrotate.d/rkhunter
/etc/rkhunter.conf

% dpkg -S /etc/default/rkhunter
dpkg-query: no path found matching pattern /etc/default/rkhunter

# debconf-get-selections | grep rkhunter
 # Automatically update rkhunter's file properties database?
 rkhunter        rkhunter/apt_autogen    boolean true
 # Activate weekly update of rkhunter's databases?
 rkhunter        rkhunter/cron_db_update boolean true
 # Activate daily run of rkhunter?
 rkhunter        rkhunter/cron_daily_run boolean true


If I build 1.4.6-4 from git, the conffiles list is the same.

The file is still heavily used by the maintainer scripts but
managed by ucf - I don't see how it is marked as a conffile.

Cheers
Vince