missing clamav folder
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When using the playbook on Amazon Linux 2 in order to install CLAMAV, I have received this error below:
Sep 21 14:37:54 ip-10-0-1-90 systemd: Starting clamd scanner (scan) daemon...
Sep 21 14:37:54 ip-10-0-1-90 clamd[12646]: Received 0 file descriptor(s) from systemd.
Sep 21 14:37:54 ip-10-0-1-90 clamd[12646]: clamd daemon 0.103.3 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Sep 21 14:37:54 ip-10-0-1-90 clamd[12646]: Log file size limited to 1048576 bytes.
Sep 21 14:37:54 ip-10-0-1-90 clamd[12646]: Reading databases from /var/lib/clamav
Sep 21 14:37:54 ip-10-0-1-90 clamd[12646]: Not loading PUA signatures.
Sep 21 14:37:54 ip-10-0-1-90 clamd[12646]: Bytecode: Security mode set to "TrustSigned".
Sep 21 14:38:07 ip-10-0-1-90 clamd[12646]: Loaded 8567141 signatures.
Sep 21 14:38:10 ip-10-0-1-90 clamd[12646]: LOCAL: Could not create socket directory: /run/clamd.scan: Permission denied
Sep 21 14:38:10 ip-10-0-1-90 clamd: ERROR: LOCAL: Could not create socket directory: /run/clamd.scan: Permission denied
Sep 21 14:38:10 ip-10-0-1-90 clamd: ERROR: LOCAL: Socket file /run/clamd.
Sep 21 14:38:10 ip-10-0-1-90 clamd[12646]: LOCAL: Socket file /run/clamd.
In order to continue with the installation I created this folder with the permissions.
I created the folder before installation, after creating the folder the installation worked and the service started.
Fix proposed to branch: master /review. opendev. org/c/openstack /ansible- hardening/ +/814748
Review: https:/