-
Notifications
You must be signed in to change notification settings - Fork 783
Description
Describe the bug
/home and /home/samiux cannot be used in OnAccessIncludePath when OnAccessPrevention is set to true. However, /home/samiux/Downloads can.
Another directory cannot be added is /snap and it also produces the same error message.
Version of ClamAV : 1.0.0.
Linux : Ubuntu 22.04.1 LTS
How to reproduce the problem
Add the following in clamd.conf :
OnAccessPrevention true
OnAccessExcludeUname clamav
OnAccessExcludeRootUID true
OnAccessIncludePath /home
Error message of clamonacc.log :
ERROR: ClamInotif: could not watch path '/home', 3
clamconf -n
Checking configuration files in /usr/local/etc
Config file: clamd.conf
PreludeAnalyzerName = "ClamAV"
LogFile = "/var/log/clamav/clamav.log"
LogFileMaxSize = "4294967295"
LogTime = "yes"
LogRotate = "yes"
ExtendedDetectionInfo = "yes"
TemporaryDirectory = "/var/tmp"
DatabaseDirectory = "/var/lib/clamav"
LocalSocket = "/var/run/clamav/clamd.sock"
LocalSocketGroup = "clamav"
LocalSocketMode = "666"
MaxConnectionQueueLength = "15"
StreamMaxLength = "26214400"
MaxThreads = "24"
ReadTimeout = "180"
SendBufTimeout = "200"
MaxQueue = "200"
SelfCheck = "3600"
User = "clamav"
BytecodeTimeout = "60000"
MaxScanTime = "120000"
MaxScanSize = "104857600"
MaxFileSize = "26214400"
MaxRecursion = "16"
MaxEmbeddedPE = "10485760"
MaxHTMLNormalize = "10485760"
MaxHTMLNoTags = "2097152"
MaxScriptNormalize = "5242880"
PCREMatchLimit = "10000"
PCRERecMatchLimit = "5000"
PCREMaxFileSize = "26214400"
OnAccessIncludePath = "/home", "/usr/bin", "/usr/sbin", "/usr/local/bin", "/usr/local/sbin", "/var/log", "/media", "/mnt", "/dev/shm", "/tmp", "/root"
OnAccessExcludePath = "/proc", "/run", "/sys", "/var/run", "/var/lock", "/tmp/tracker-extract-1-files.1000"
OnAccessExcludeRootUID = "yes"
OnAccessExcludeUname = "clamav"
OnAccessPrevention = "yes"
OnAccessExtraScanning = "yes"
OnAccessCurlTimeout = "600"
OnAccessMaxThreads = "24"
Config file: freshclam.conf
LogFileMaxSize = "4294967295"
LogTime = "yes"
LogRotate = "yes"
DatabaseDirectory = "/var/lib/clamav"
UpdateLogFile = "/var/log/clamav/freshclam.log"
Checks = "24"
DatabaseMirror = "db.local.clamav.net", "database.clamav.net"
MaxAttempts = "5"
DatabaseCustomURL = "https://mirror.rollernet.us/sanesecurity/badmacro.ndb", "https://mirror.rollernet.us/sanesecurity/blurl.ndb", "https://mirror.rollernet.us/sanesecurity/junk.ndb", "https://mirror.rollernet.us/sanesecurity/jurlbl.ndb", "https://mirror.rollernet.us/sanesecurity/jurlbla.ndb", "https://mirror.rollernet.us/sanesecurity/lott.ndb"
ReceiveTimeout disabled
clamav-milter.conf not found
Software settings
Version: 1.0.0
Optional features supported: MEMPOOL AUTOIT_EA06 BZIP2 LIBXML2 PCRE2 ICONV JSON RAR
Database information
Database directory: /var/lib/clamav
[3rd Party] junk.ndb: 56224 sigs
daily.cld: version 26764, sigs: 2014489, built on Wed Dec 28 16:36:06 2022
[3rd Party] blurl.ndb: 2830 sigs
[3rd Party] badmacro.ndb: 643 sigs
[3rd Party] lott.ndb: 2338 sigs
bytecode.cvd: version 333, sigs: 92, built on Mon Mar 8 23:21:51 2021
[3rd Party] jurlbl.ndb: 6360 sigs
main.cvd: version 62, sigs: 6647427, built on Thu Sep 16 20:32:42 2021
[3rd Party] jurlbla.ndb: 691 sigs
Total number of signatures: 8731094
Platform information
uname: Linux 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64
OS: Linux, ARCH: x86_64, CPU: x86_64
Full OS version: Ubuntu 22.04.1 LTS
zlib version: 1.2.13 (1.2.13), compile flags: a9
platform id: 0x0a21a0a00800000000050400
Build information
GNU C: 5.4.0 20160609 (5.4.0)
sizeof(void*) = 8
Engine flevel: 160, dconf: 160