clamav: Add syslogging options
authorPaul Donald <newtwen+github@gmail.com>
Tue, 8 Oct 2024 20:59:18 +0000 (22:59 +0200)
committerRosen Penev <rosenp@gmail.com>
Sun, 27 Oct 2024 22:59:04 +0000 (15:59 -0700)
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
net/clamav/files/clamav.config
net/clamav/files/clamav.init

index a3203d7c2fb5668089d3b064212071c33d70d8b5..ed8260a7f21693d3fe4d9c23488768da3b359fdb 100644 (file)
@@ -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'
index 7ade317ef78a7c21a7f48bf85b390d387b13c6a7..f7ff1e6e1eb18d8daf379065013134ddb5392c36 100644 (file)
@@ -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"