Package: chkrootkit
Version: 0.57-2+b1
Severity: normal
X-Debbugs-Cc: richard...@gmail.com


/lib/systemd/system/chkrootkit.timer contains -

# then run every day
OnUnitActiveSec=24h

This is a monotonic timer. According to systemd.timer manpage -

    These are monotonic timers, independent of wall-clock time and
    timezones. If the computer is temporarily suspended, the monotonic
    clock generally pauses, too.

On my system, which is usually suspended overnight, the chkrootkit.service has 
not run since last upgrading over 2 days ago.

~$ date
Thu 27 Apr 14:40:00 CEST 2023
~$ systemctl status chkrootkit.timer | more
● chkrootkit.timer - chkrootkit daily timer
     Loaded: loaded (/lib/systemd/system/chkrootkit.timer; enabled; preset: enab
led)
     Active: active (waiting) since Tue 2023-04-25 05:51:39 CEST; 2 days ago
      Until: Tue 2023-04-25 05:51:39 CEST; 2 days ago
    Trigger: Fri 2023-04-28 06:04:11 CEST; 15h left
   Triggers: ● chkrootkit.service
       Docs: man:chkrootkit(8)
~$
~$ #suspended for about one hour
~$
~$ date
Thu 27 Apr 17:46:01 CEST 2023
~$ systemctl status chkrootkit.timer | more
● chkrootkit.timer - chkrootkit daily timer
     Loaded: loaded (/lib/systemd/system/chkrootkit.timer; enabled; preset: enab
led)
     Active: active (waiting) since Tue 2023-04-25 05:51:39 CEST; 2 days ago
      Until: Tue 2023-04-25 05:51:39 CEST; 2 days ago
    Trigger: Fri 2023-04-28 07:37:58 CEST; 13h left
   Triggers: ● chkrootkit.service
       Docs: man:chkrootkit(8)

The trigger is further in the future. I guess the timer will expire eventually, 
but to preserve the old crontab behaviour and run every day, perhaps a realtime 
(i.e. wallclock) timer should be used e.g

OnCalendar=daily


-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-7-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages chkrootkit depends on:
ii  libc6  2.36-9

Versions of packages chkrootkit recommends:
ii  anacron                                    2.3-36
ii  binutils                                   2.40-2
ii  exim4-daemon-light [mail-transport-agent]  4.96-14
ii  iproute2                                   6.1.0-2
ii  mailutils [mailx]                          1:3.15-4
ii  net-tools                                  2.10-0.1
ii  procps                                     2:4.0.2-3
ii  systemd-sysv                               252.6-1

chkrootkit suggests no packages.

-- no debconf information

Reply via email to