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
Files with cryptic names get written in / (unix root) #168
Comments
|
It looks to me as your systemd service for that starts Please share the contents of the |
|
|
I'm stumped. I have no idea how those files would've gotten there. |
|
Same here. And this is not just me - this happens on multiple systems - all derivatives of debian. |
|
As a side note, if you're using 0.103.2 and |
|
Yup, this was from an older version, where fdpass was broken. I'll test this again. |
|
I tried on a different system now. Sometimes it restarts ok, sometime it creates a file in /, sometime it locks up and will be killed by systemd. OS: Ubuntu 21.04 PS: fdpass works |
|
Without i wasn't able to reproduce the file creation. It still gets stuck sometimes. (On restart) |
|
@monkz I have a sneaking suspicion that this is caused by some undefined behavior
This is a really good tip. I'm sorry I haven't worked on this yet, but it gives me some ideas. I think it may have to do with how the logging module inside the common static library is linked, used. I think there may be some undefined behavior going on. I wonder if it would be fixed by adding a |
|
Stopped using Rsyslog Config: Log Parsing: I think logging should be handled by operating system logging facility. It handles permissions, can do rotation while giving the high flexibility such as log forwarding. Honestly i think |
|
I revert my take above as I have started using |
|
Unfortunately I have exactly the same issue in my LInux Mint Cinnamon 20.3 "Una" (Ubuntu 20.04 focal). 187 bytes files with names like "�8: <�U (invalid encoding)" or "��q�cU (invalid encoding)" are created under "/". The content is always the same: The content of my clamonacc.service is as follows: Some advice? Can we intervene in any way? P.S. |
|
I could no longer reproduce this issue after the refactor linked above. Let me know if it fixes your issue. If it doesn't, I suspect I'll have to wrap mutexes around logg calls within the threadpool callback function |
|
Sorry for delay! Now it seems to be all right. |
|
Looks promising |
Describe the bug
On Debian/Ubuntu 20.04+ files with cryptic names get written in / (unix root):
Each file with 23Byte contains the string
On my system following packages are installed:
clamav-deamon is running as systemd service (starts as root but drops to user clamav via clamd.conf)
clamonacc is running as systemd service (starts as root and stays root and streams files to clamd)
some clamdscan executions are scheduled via cron (starts as root and uses fdpass)
How to reproduce the problem
systemctl restart clamonacc.service(contents of that service file see below)have --log in the service file
The text was updated successfully, but these errors were encountered: