Secure-Compliance-Solutions-LLC / GVM-Docker

Greenbone Vulnerability Management Docker Image with OpenVAS
https://securecompliance.gitbook.io/projects/
MIT License
249 stars 91 forks source link

Fix GVMUpdate job #297

Closed alexandrefresnais closed 3 years ago

alexandrefresnais commented 3 years ago

Summary

This PR makes the sync-all.sh script executable directly by the gvm user. The supervisor conf is running the GVMUpdate job as gvm user and thus, the feed is never updated due to su errors. See https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker/issues/293

I did not want to make the job run as root for good security practices reasons. So instead, I check whether or not the user is root or gvm and adapt the update commands.

Fixed Bug/Issues solved:

Resolves #293

https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker/issues/293

Breaking Changes:

The sync-all.sh script is working when executed by gvm user.