Skip to content

Commit 2c56782

Browse files
committed
[New] Document scan_progress_log_interval in conf.maldet, man page, allowlist
[New] conf.maldet: scan_progress_log_interval in SCAN PROGRESS LOGGING section [New] maldet.1: detailed description and summary listing [Change] _safe_source_conf: add scan_progress_log_interval to allowlist
1 parent 43649a5 commit 2c56782

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

files/conf.maldet

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,3 +508,13 @@ session_legacy_compat="auto"
508508
# [ string length in characters, default = 150000 ]
509509
string_length_scan="0" # [ 0 = disabled, 1 = enabled ]
510510
string_length="150000" # [ max string length ]
511+
512+
##
513+
# [ SCAN PROGRESS LOGGING ]
514+
##
515+
# Interval in seconds between progress checkpoints written to the
516+
# event log during background scans (maldet -b). Each checkpoint
517+
# reports the current scan stage, files processed, percentage,
518+
# elapsed time, and estimated time remaining.
519+
# [ 0 = disabled, default = 60 ]
520+
scan_progress_log_interval="60"

files/internals/lmd_config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ _build_co_allowed_pattern() {
251251
_pat="${_pat}|enable_statistic|elk_host|elk_port|elk_index"
252252
_pat="${_pat}|string_length_scan|string_length"
253253
_pat="${_pat}|session_legacy_compat"
254+
_pat="${_pat}|scan_progress_log_interval"
254255
_pat="${_pat})\$"
255256
printf -v "$1" '%s' "$_pat"
256257
}

files/maldet.1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ Key variables by category:
322322
.BR scan_ignore_user ,
323323
.BR scan_ignore_group ,
324324
.BR string_length_scan ,
325-
.BR string_length .
325+
.BR string_length ,
326+
.BR scan_progress_log_interval .
326327
.PP
327328
.B Quarantine:
328329
.BR quarantine_hits ,
@@ -458,6 +459,15 @@ A value of 0 disables the timeout.
458459
Values between 1 and 59 are silently ignored (minimum is 60).
459460
Default: 0.
460461
.PP
462+
.B scan_progress_log_interval
463+
sets the interval in seconds between progress checkpoints written to the
464+
event log during background scans
465+
.RB ( "maldet \-b" ).
466+
Each checkpoint reports the current scan stage, files processed, percentage
467+
complete, elapsed time, and estimated time remaining.
468+
A value of 0 disables progress logging.
469+
Default: 60.
470+
.PP
461471
.B scan_days
462472
sets the number of days to look back for recently modified files during
463473
daily cron scans.

0 commit comments

Comments
 (0)