From 921279261cf19507267390e01bd399e37db28390 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Tue, 8 Oct 2024 22:59:18 +0200 Subject: [PATCH] clamav: Add syslogging options Signed-off-by: Paul Donald --- net/clamav/files/clamav.config | 3 +++ net/clamav/files/clamav.init | 10 ++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/net/clamav/files/clamav.config b/net/clamav/files/clamav.config index a3203d7c2f..ed8260a7f2 100644 --- a/net/clamav/files/clamav.config +++ b/net/clamav/files/clamav.config @@ -2,6 +2,9 @@ config clamav 'clamav' option clamd_config_file '/etc/clamav/clamd.conf' option LogTime 'no' option LogVerbose 'no' + option Debug 'no' + option LogSyslog 'yes' + option LogFacility 'LOG_LOCAL6' option ExtendedDetectionInfo 'no' option OfficialDatabaseOnly 'no' option StreamMinPort '1024' diff --git a/net/clamav/files/clamav.init b/net/clamav/files/clamav.init index 7ade317ef7..f7ff1e6e1e 100644 --- a/net/clamav/files/clamav.init +++ b/net/clamav/files/clamav.init @@ -12,8 +12,11 @@ validate_clamav_section() { uci_load_validate clamav clamav "$1" "$2" \ 'clamd_config_file:string' \ 'LogVerbose:string' \ - 'ExtendedDetectionInfo:string' \ 'LogTime:string' \ + 'Debug:string' \ + 'LogSyslog:string' \ + 'LogFacility:string' \ + 'ExtendedDetectionInfo:string' \ 'OfficialDatabaseOnly:string' \ 'StreamMinPort:uinteger' \ 'StreamMaxPort:uinteger' \ @@ -62,8 +65,11 @@ start_clamav_instance() { { echo "LogVerbose " "$LogVerbose" - echo "ExtendedDetectionInfo " "$ExtendedDetectionInfo" echo "LogTime " "$LogTime" + echo "Debug " "$Debug" + echo "LogSyslog " "$LogSyslog" + echo "LogFacility " "$LogFacility" + echo "ExtendedDetectionInfo " "$ExtendedDetectionInfo" echo "OfficialDatabaseOnly " "$OfficialDatabaseOnly" echo "StreamMinPort " "$StreamMinPort" echo "StreamMaxPort " "$StreamMaxPort" -- 2.30.2