mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2116] firejail AppArmor profile doesn't work #1434
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#1434
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 @hardenedfly on GitHub (Sep 15, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2116
Here's what happens when I run
sudo aa-enforce firejail-default:I compiled firejail this way:
I'm using Arch Linux with a kernel that has AppArmor support enabled, I tested AppArmor with other profiles and it worked properly.
My kernel:
4.18.7.a-1-hardenedMy AppArmor version:
apparmor 2.13.0-4@chiraag-nataraj commented on GitHub (Sep 15, 2018):
Try restarting. I've had this issue when apparmor was updated.
@hardenedfly commented on GitHub (Sep 15, 2018):
I did that, The issue remains.
@hardenedfly commented on GitHub (Sep 15, 2018):
@chiraag-nataraj
It seems to be something related to this bug, https://gitlab.com/apparmor/apparmor/merge_requests/142
I'm not sure what an attachment path is(I'm still a beginner, sorry) but can you include one?
@hardenedfly commented on GitHub (Sep 16, 2018):
I just checked. Regardless of the error, the profile appears in when I run
sudo aa-statusafter reloading theapparmorservice. Does this mean that the profile is loaded but broken or something like that? I mean it still shows the error when runningsudo aa-enforce firejail-default@chiraag-nataraj commented on GitHub (Sep 16, 2018):
Ohh. Right, so if the profile is already loaded, I think it gives that error. You'd have to use
sudo apparmor_parser -r /etc/apparmor.d/firejail-defaultor something like that to reload a profile that's already loaded.@Vincent43 commented on GitHub (Sep 17, 2018):
firejail-defaultapparmor profile is loaded only on demand by firejail as it doesn't protect any specific binary but only those which firejail pass to it. You don't load it manually. You can check it by runningfirejail --apparmor bashthen from different terminalsudo aa-status.