Join the community today
Become a Member

Beta Branch add cmsec check progress banner so users see immediate feedback in 140.00beta01

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

  1. eva2000

    eva2000 Administrator Staff Member

    59,478
    12,536
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,176
    Local Time:
    5:47 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    add cmsec check progress banner so users see immediate feedback in 140.00beta01

    Interactive `cmsec check <cve-id>` runs printed nothing for ~1-2s while the
    script's startup probes ran (function defs, OS detection, /etc/os-release
    parse), making users wonder whether the command was hung. Add an immediate
    "Running <CVE> / <label> check (read-only) — please wait..." banner at the
    top of the begin-checks block in all three check scripts so the cursor is
    no longer just flashing.

    Banner uses say() which is gated on QUIET=0, so:
    - Interactive (no flags): banner appears immediately, then the normal
    section-by-section report follows.
    - --json: QUIET=1 (set by --json), banner suppressed, JSON output stays
    clean for parsers (cmsec.sh:254 awk + dmotd.sh:577 grep).
    - --quiet: QUIET=1, banner suppressed (user explicitly opted out of
    narrative output).

    Changes:
    - tools/cmm-security/checks/check-cve-2026-31431.sh: banner before os_id
    parse.
    - tools/cmm-security/checks/check-cve-2026-43284.sh: same.
    - tools/cmm-security/checks/check-cve-2026-43500.sh: same.


    Branch parity with 141.00beta01 (commit adff8395) and 132.00stable;
    tools/cmm-security/ remains byte-identical across all three branches.

    Continue reading...

    140.00beta01 branch