2025-06-08 12:21:40 +02:00
|
|
|
## clamav_cd::main::config.pp
|
|
|
|
|
# Module name: clamav_cd
|
2019-10-28 17:40:12 +01:00
|
|
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
|
|
|
|
# @summary Class manages all aspects of configuring the module logic for
|
2025-06-08 12:21:40 +02:00
|
|
|
# clamav_cd.
|
2019-10-28 17:40:12 +01:00
|
|
|
##############################################################################
|
2025-06-08 12:21:40 +02:00
|
|
|
class clamav_cd::main::config (
|
2019-10-28 17:40:12 +01:00
|
|
|
|
2025-06-08 12:21:40 +02:00
|
|
|
) inherits clamav_cd::params {
|
|
|
|
|
include clamav_cd::main::service
|
2025-06-08 14:26:09 +02:00
|
|
|
|
|
|
|
|
# Ensure the SELinux boolean antivirus_can_scan_system is enabled if disabled
|
|
|
|
|
exec { 'enable_antivirus_can_scan_system':
|
|
|
|
|
command => '/usr/sbin/setsebool -P antivirus_can_scan_system 1',
|
|
|
|
|
unless => '/usr/sbin/getsebool antivirus_can_scan_system | grep --quiet "on"',
|
|
|
|
|
path => ['/usr/sbin', '/bin'],
|
|
|
|
|
}
|
2019-10-28 17:40:12 +01:00
|
|
|
}
|