Skip to content

Add --fdpass flag to clamdscan command #31

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

Merged
merged 1 commit into from
May 21, 2021
Merged

Conversation

rsora
Copy link
Contributor

@rsora rsora commented May 21, 2021

Antivirus scan performed with clamav on downloaded repos was failing due to the following error:

2021/05/21 11:30:51 Error syncing library: exit status 2
2021/05/21 11:30:51 Checking out tag: 1.0.2
2021/05/21 11:30:51 clamav output:
/home/arduino/workspace/workspace/Librariesv2/gitclones/github.com/arduino-libraries/Servo: lstat() failed: Permission denied. ERROR

This permission issue was solved taking a look to the clamdscan man

--fdpass
Pass the file descriptor permissions to clamd. This is useful if clamd is running as a different user as it is faster than streaming the file to clamd. Only available if connected to clamd via local(unix) socket.

…d (useful if clamd is running as a different user)
@CLAassistant
Copy link

CLAassistant commented May 21, 2021

CLA assistant check
All committers have signed the CLA.

@rsora rsora requested review from per1234, silvanocerza and cmaglie May 21, 2021 11:48
@rsora rsora merged commit f12d3a8 into main May 21, 2021
@per1234 per1234 deleted the rsora/clamav-launch-config branch May 21, 2021 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants