fanotify | simple fanotify example for watching events
kandi X-RAY | fanotify Summary
kandi X-RAY | fanotify Summary
A simple fanotify example for watching events on a filesystem.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fanotify
fanotify Key Features
fanotify Examples and Code Snippets
Community Discussions
Trending Discussions on fanotify
QUESTION
I need to implement anti-virus on-access scanning solution for files inside docker containers using open-source software. Clamav On-Access works fine but have some requirements and limitations:
- require CAP_SYS_ADMIN capability for working inside a container
- needs to be run per-container, not per-host
- require 850Mb resident memory for signatures in each running container, even small one
Does this limitation - "fanotify not working for container events when watching from host", really exists or I just misconfigured ClamAV? I have no deep knowledge how fanotify works with namespaces, but it looks like kernel limitation to me.
UPDATE: Are there any workarounds for this limitation? Adding /var/lib/docker/overlay2/container_id/merged
is one option, because of dynamic container nature clamd.conf
needs to be updated on every container event. But even with added path ClamAV doesn't detect malicious files in the containers.
Running ClamAV per-container creates huge memory overhead, especially for small containers.
Links collection:
...ANSWER
Answered 2020-Feb-03 at 17:27Yes, fanotify only monitors events in the mount namespace that it is running in.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fanotify
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page