Comments (5)
Hi @robaca, I created a build with a non-root user. Can you test it?
docker pull ajilaag/clamav-rest:sha-b49b795
from clamav-rest.
This image does not start clamav at all:
sed: can't create temp file '/etc/clamav/clamd.confXXXXXX': Permission denied
sed: can't create temp file '/etc/clamav/clamd.confXXXXXX': Permission denied
sed: can't create temp file '/etc/clamav/clamd.confXXXXXX': Permission denied
...
tee: /var/log/clamav/clamav.log: Permission denied
ERROR: Can't open /var/log/clamav/clamd.log in append mode (check permissions!).
ERROR: Can't initialize the internal logger
Starting clamav rest bridge
Connecting to clamd on tcp://localhost:3310
clamD not running, waiting times [1]
ERROR: Can't save PID to file /run/clamav/freshclam.pid: Permission denied
clamD not running, waiting times [2]
clamD not running, waiting times [3]
clamD not running, waiting times [4]
...
Error getting clamd version: dial tcp [::1]:3310: connect: connection refused
As podman
is docker
cli compatible, you should be able to test it even without podman installed.
from clamav-rest.
I can confirm that this image did not work at all. I removed the latest build for this reason. Unfortunately, I do not have the capacity to explore this further at the moment, but please feel free to submit a PR. I have created the branch https://github.com/ajilach/clamav-rest/tree/44-non-root-support if you want to work on the updated Dockerfile.
from clamav-rest.
Hi @davosian, I created a draft PR #45 with my changes. The resulting docker image works successfully in our environment with a readonly filesystem and mounted volumes for writing (see docker-compose-nonroot.yml example).
from clamav-rest.
As of May 20th, the builds include non-root support. Thanks for the PR, @robaca
from clamav-rest.
Related Issues (20)
- Dependency Dashboard
- Freshclam warning about Clamd not being notified of database update HOT 3
- Scanned filename in clamd logs HOT 2
- Data directory
- Clamav Vulnerability HOT 1
- Authentication
- Security updates needed HOT 2
- HTTP/2 clear (h2c) support HOT 7
- Feature: Support proxy in entrypoint for freshclam HOT 1
- Bug: service does not return proper status when file size is greater than `MAX_FILE_SIZE` value
- Is there /health check for this REST API?
- Register scanHandlerBody function
- Fail update, and fail create tmp file
- Start Antivirus Service than check for Virus updates
- how to define data directory (Volume)
- The SSL certificate is invalid HOT 2
- Updating the signature database HOT 1
- ClamAV vulnerability HOT 2
- Suggestion: wrap multipart scan response in json array brackets, include faulty status for missing filename
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clamav-rest.