-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More options for exclusions #15
Comments
The fanotify API does not allow to identify that a file is opened for execution. Would it help to have a customizing flag such that clamav updates should not invalidate the cache? Instead a maximum age could be used. |
Hmm. That lack of support for execution detection in the fanotify API is really a bummer :( What about implementing the r+w filters using the FAN_CLOSE_WRITE / FAN_MODIFY options, so we could (at least) include/exclude read + write accesses of certain paths or path regexes ? |
Hmm. Seems there was a discussion about fanotify + FMODE_EXEC: [Patch 1/1] fsnotify,fanotify: adding flag for execution Unfortunately, that did not lead to a final conclusion... |
Hello Wolfram (@wschlich) We already have EXCLUDE_PATH in /etc/skyldav.conf. So what do you really espect to be different in the r/w-filters you suggest? Best regards Heinrich Schuchardt |
Hey Heinrich! Not really :) In the end, I'd like to have a usable computer with Skyld AV running and scanning the important things. Technically, I'd like to be able to specify on a per-path(-regex) basis which files to scan on read or close-on-write/close-on-modified (and on execution, although that's currently unfortunately not possible with fanotify). Cheers, |
Hello Wolfram, in version 0.6 I added configuration flag CLEAN_CACHE_ON_UPDATE. Does this solve you original problem. Best regards Heinrich |
Hi!
Currently, skyldav can only be configured to exclude certain paths, mountpoints or filesystems from scanning completely.
Running skyldav on my laptop every day slows it down horribly, as each and every file is being scanned on every read access (cache doesn't help, as results are invalidated on every clamav update)
Therefore, I have a suggestion to add functionality and configuration options for scanning files only:
It would be nice to be able to apply these scan filters on a per-directory, per-filesystem and per-mountpoint basis, like this:
/etc/skyldav.rules:
--8<--
/ wx
/home/*/Download rwx
/var/tmp rwx
/tmp rwx
/srv rwx
--8<--
The rule for / should be inherited for every path beneath it which does not have specific rules.
What are your thoughts?
Cheers,
Wolfram
The text was updated successfully, but these errors were encountered: