mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5716] claws-mail: ClamAV plugin fails with "Permission denied" #3074
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3074
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @marek22k on GitHub (Mar 7, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5716
Description
Clamav needs access to the virus database in
/var/lib/clamav. Accordingly, the ClamAv plugin for Claws-Mail also needs access to it.Steps to Reproduce
Steps to reproduce the behavior
$firejail --profile=/etc/firejail/claws-mail.profile ls /var/lib/clamavExpected behavior
A list of files in the
/var/lib/clamavdirectory.Actual behavior
A
Permission deniedmessage.Behavior without a profile
Additional context
Adding
whitelist /var/lib/clamav/to/etc/firejail/claws-mail.localdidn't help.Environment
firejail --version).Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/programhttps://gist.github.com/marek22k/874cb73f823ddb046be72b7023d8563f
@marek22k commented on GitHub (Mar 7, 2023):
Does anyone know a workaround? The profile
clamav.profileseems to work for example.@ghost commented on GitHub (Mar 7, 2023):
In cases like this it helps to do a search for 'clamav' under /etc/firejail. That would reveal disable-common.inc blacklists /var/lib/clamav:
1f5f84f959/etc/inc/disable-common.inc (L234)TL;DR you need to override that via
noblacklist /var/lib/clamav.@marek22k commented on GitHub (Mar 7, 2023):
That also does not work:
@ghost commented on GitHub (Mar 7, 2023):
WFM (with a test file /var/lib/clamav/foo). You need both, like what's done for /var/mail in email-common.profile.
@marek22k commented on GitHub (Mar 7, 2023):
Mhh, that works.
@marek22k commented on GitHub (Mar 7, 2023):
Claws Mail also needs access to the Clamd Socket:
Works with
--whitelist=/var/run/clamav/clamd.ctl.@marek22k commented on GitHub (Mar 7, 2023):
ClamAv also needs access to its configuration file:
/etc/clamav/clamd.confThis results in a warning in claws mail: