d72f824aea
FIXES: - Create log/results directories before use (prevents all append operations from failing) - Add error checking for RKHunter database/baseline updates - Background Maldet scans with proper PID tracking and wait validation - Add PID validation before all wait commands (ImunifyAV, ClamAV) - Remove unused TOTAL_MALDET_HITS variable - Rename FILES_SCANNED to context-specific names (CLAMAV/MALDET) for clarity IMPACT: - Fixes log file failures that were silently discarding scanner output - Improves diagnostics with proper error logging for RKHunter initialization - Enables parallel execution of Maldet scans across multiple paths - Prevents wait command failures from invalid PIDs - Eliminates variable naming confusion across scanner implementations These fixes address all 7 critical issues found in audit pass 4.