mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2291] Firejail Apparmor Support Not Working (Even Though it's Been Enable During BUILD) #1528
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#1528
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 @thebunnyrules on GitHub (Dec 5, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2291
Hello,
I'm trying to run firejail with apparmor support. I've tried with both the ubuntu build which comes from the cosmic repo and the latest source from git (0.9.57, libappormor-dev is already install) built with:
./configure --prefix=/usr --enable-apparmorEntering:
firejail --versionon both gives:
but when I try to run:
firejail --apparmor firefoxmy apparmor profile is still being ignored. I have aa-enforce running on firefox and it's working perfectly without firejail, so I know it's not the profile or apparmor.
Any ideas on how I can trouble shoot this? THANKS!!!!
@Vincent43 commented on GitHub (Dec 5, 2018):
Which profile is ignored? Generic one from firejail under
/etc/apparmor.d/firejail-defaultor firefox specific one from/etc/apparmor.d/usr.bin.firefox?EDIT: When
--apparmoroption is used, then/etc/apparmor.d/firejail-defaultprofile should be used for any given app. Without--apparmorapp may be confined by its own apparmor profile but it may cause conflicts with firejail thus it's not recommended to use both firejail and specific apparmor profile at the same time.@thebunnyrules commented on GitHub (Dec 6, 2018):
Hi Vincent, thanks for getting back to me so quickly. I'll play around with
/etc/apparmor.d/firejail-default, see what happens and post a follow up. Thanks!@Vincent43 commented on GitHub (Dec 6, 2018):
You may add your own customizations to
/etc/apparmor.d/local/firejail-localso they will be persistent after firejail update.@thebunnyrules commented on GitHub (Dec 7, 2018):
So, is it possible to do per-application apparmor customization via firejail-default or firejail-local?
Does firejail-default support hat change or sub profiles?
I tried to do a change hat inside firejail-default for firefox but it's being ignored. For example
I also tried
^/opt/firefox.wayland/firefox {...and also triedprofile firefox {...but no dice either. I restarted apparmor each time I tried to apply a new change and restarted successfully so there is no syntax error as far as I can tell...@Vincent43 commented on GitHub (Dec 7, 2018):
It's not possible to do per-application modifications. It's one-size-fits-all.
@chiraag-nataraj commented on GitHub (May 22, 2019):
Seems like this was answered, so I'll go ahead and close this. @thebunnyrules, pleas feel free to re-open if you have further questions.