RedHat-SP-Security / tang-operator-tests

Upstream repository for tang-operator test suite
GNU General Public License v3.0
1 stars 1 forks source link

Malware test not working appropriately #23

Closed sarroutbi closed 1 year ago

sarroutbi commented 1 year ago

Malware test is not working appropriately on Packit mode. This needs investigation. Error seems to be related to the usage of "unshare" in root mode:

LibClamAV Error: cli_loaddbdir: No supported database files found in /var/lib/clamav
ERROR: Can't open file or directory

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 1.0.2
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.002 sec (0 m 0 s)
Start Date: 2023:10:16 09:43:55
End Date:   2023:10:16 09:43:55
:: [ 09:43:55 ] :: [   FAIL   ] :: Checking for malware, logfile:/tmp/tmp.NMxL1ZYYuc/tang-operator_v1.0.1_malware.log (Expected 0, got 2)
:: [ 09:43:55 ] :: [   PASS   ] :: Checking no infected files (Assert: '0' should equal '0')
Error: please use unshare with rootless