Join the community today
Register Now

Beta Branch add cmsec-prewarm.sh + cpcheck.inc cronsetup in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 27, 2026.

  1. eva2000

    eva2000 Administrator Staff Member

    59,487
    12,536
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,176
    Local Time:
    6:08 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    add cmsec-prewarm.sh + cpcheck.inc cronsetup in 140.00beta01

    Auto-installs a 12h cron entry refreshing the cmsec cache before its
    24h TTL expires, so dmotd.sh's cmsec_checks() hits warm cache instead
    of paying the cold-cache cost (dnf refresh + KCONFIG probes + kcarectl
    5s timeout). Deploys via the inc/cpcheck.inc cronsetup pattern — fresh
    installs and existing cmupdate paths both get the entry silently on
    the next centmin.sh run.

    Does NOT close state-key invalidation gaps (kernel reboot, livepatch,
    OS conversion) — admins can run the script manually after those events.

    Changes:
    - tools/cmm-security/cmsec-prewarm.sh: cmsec.sh --no-cache --dmotd --json wrapper with flock
    - inc/cpcheck.inc: cmsec_prewarm_cronsetup() + 2 dispatcher calls (17 */12 * * *)


    Continue reading...

    140.00beta01 branch