mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3629] Problem Apparmor with Brave #2281
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#2281
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 @Bundy01 on GitHub (Sep 11, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3629
Write clear, concise and in textual form.
Bug and expected behavior
I have an Apparmor warning popup when launching Brave Browser.
No profile or disabling firejail
It's OK.
Environment
Checklist
find / -name 'firejail' 2>/dev/null/fd firejailto locate profiles ie in/usr/local/etc/firejail/PROGRAM.profile)audit.log
debug output
type=AVC msg=audit(1599667022.015:665): apparmor="DENIED" operation="open" profile="firejail-default" name="/proc/87/clear_refs" pid=124712 comm="MemoryInfra" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000I disabled apparmor in the chromium-common profile and the bug stopped.
It's not really the best thing to do. Isn't the problem coming from the Firejail profile for Apparmor?
Regards.
@rusty-snake commented on GitHub (Oct 1, 2020):
@Vincent43 your the apparmor expert here.
@Vincent43 commented on GitHub (Oct 2, 2020):
This should be fixed by this commit which is only in master branch atm.
@Bundy01 commented on GitHub (Oct 2, 2020):
@Vincent43: Your patch seems to work after a reboot and reload of the apparmor service.
Thanks.
edit: It's secondary but an apparmor error comes back when I run Brave with Tor:
I tried to add 'x' to the profile without success.
@Vincent43 commented on GitHub (Oct 2, 2020):
try adding:
owner /home/**/.config/BraveSoftware/Brave-Browser/** ix,in
/etc/apparmor.d/local/firejail-localthen restart apparmor or reboot.@Bundy01 commented on GitHub (Oct 2, 2020):
I copied your instruction in the file but the error comes back.
edit: I just copied the line into
firejail-default/etc/apparmor.d/local/firejail-default and it works.@Bundy01 commented on GitHub (Oct 25, 2020):
I'm coming back to this issue because Tor in Brave doesn't work anymore (no internet connection). This time it's not a problem with Apparmor. This one appeared on Arch with version 0.9.64rc1-2. With version 0.9.64-1, it's identical.
@Vincent43 commented on GitHub (Oct 30, 2020):
Are you sure it's not Apparmor? I heard that Arch Linux package update wiped local
/etc/apparmor.d/local/firejail-defaultchanges so yourowner /home/**/.config/BraveSoftware/Brave-Browser/** ix,rule may be lost. If it's not apparmor problem then feel free to open new issue with more details and this one should be closed.@Bundy01 commented on GitHub (Oct 30, 2020):
The problem doesn't come from apparmor this time (I commented the apparmor line in chromium-common.profile).
Indeed, /etc/apparmor.d/local/firejail-default was overwritten during updates, but it has been fixed with the latest version (.pacnew).
For
/home/**/.config/BraveSoftware/Brave-Browser/** ix,are you thinking of doing a PR?I can make another issue for the new problem, but I don't have much information because it appeared with the firejail-0.9.64rc1-2 package. I also have an 'execvp' error when running the Tor profile.
@Vincent43 commented on GitHub (Oct 30, 2020):
As a general policy we don't allow executing code from user home in global firejail appamor profile so changes like this belong to user own overrides.
Please do and show all errors from console. As this issue is about apparmor I don't want to convolute it with unrelated problems.
@Bundy01 commented on GitHub (Oct 30, 2020):
Ok, no problem.
I ceate an hover issue for that.
This issue can be close.