mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 17:00:28 +04:00
clamav: Add syslogging options
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user