mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4393] BUG// apparmor protection failed #2648
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#2648
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 @osevan on GitHub (Jul 7, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4393
Running firejail 0.65 in kernel 5.11 rt
Buster and bullseye box
With Apparmor support enabled at compile time with configure flag.
I can detect with sudo aa-status ,if firejail-default profile running for Apparmor , when apparmor flag is inside profile .
Example chrome and Firefox .
But I figured out with mupdf, evince and qpdfview with apparmor flag inside, sudo aa-status cant detect firejail-default for these sandboxes.
Maybe Apparmor library not works inside firejail?
I tested on bullseye and buster.
@rusty-snake commented on GitHub (Jul 8, 2021):
There is no 0.65 firejail release. Guess you mean 0.9.65, but this is out of date.
Latest release: 0.9.66
Latest git: 0.9.67
If you compile firejail from source, you need to regularly do this.
So running
firejail --apparmor firefox & firejail --apparmor evinceand thensudo aa-statusshows only firefox, right?@osevan commented on GitHub (Jul 9, 2021):
With apparmor in evince.profile not direct flag --apparmor
aa-status cant recognize firejail-default for evince
@rusty-snake commented on GitHub (Jul 9, 2021):
So
apparmorin evince.profile does not work but--apparmorworks?@osevan commented on GitHub (Jul 9, 2021):
I have not tested --apparmor.
I can test at night.
But yes,apparmor inside profile placed, but, not triggered by aa-status
@rusty-snake commented on GitHub (Jul 9, 2021):
This happen in Debian Buster and Debian Bullseye? Or do you mean a FrankenDebian?
If it works for firefox ...
Probably best to post the output of
aa-status.Are they really running inside firejail (
firejail --list)?@osevan commented on GitHub (Jul 10, 2021):
Of course they run
@rusty-snake commented on GitHub (Jul 16, 2021):
The thing is that I can not explain what can cause
apparmorto apply to firefox but not to evince except for evince not running in firejail.@osevan commented on GitHub (Jul 19, 2021):
Today i did git pull and compiled firejail again.
Updated kernel to 5.13 rt
Even with firejail --apparmor dnscrypt-proxy ,apparmor cannot trigger firejail-default in aa-status, but, firejail --list shows everything running well
@rusty-snake commented on GitHub (Jul 20, 2021):
Are chrome and firefox the only sandboxes where firejail-default is shown by aa-status?
@osevan commented on GitHub (Jul 21, 2021):
Plus libreoffice works well and aa-status trigger firejail-default with libreoffice inside.
I dont tested many apps only libreoffice browser Firefox and chrome and pdf apps.
@osevan commented on GitHub (Jul 26, 2021):
I figured out what was wrong.
I have symbolic link in usr/local/bin, what points to /usr/bin/firejail <-- this is old firejail place 9.0.64.
New binary place is in /usr/local/bin/firejail.
Now my shell tried wrong firejail execution and apparmor couldn't start.
I deleted symbolic links and corrected path.
Now everything works like expected.