mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
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#4838
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?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/3660
Author: @kris7t
Created: 10/10/2020
Status: ✅ Merged
Merged: 10/10/2020
Merged by: @kris7t
Base:
master← Head:apparmor-run📝 Commits (1)
bba750cFix AppArmor 3.0 support (closes #3659)📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
etc/apparmor/firejail-default(+4 -0)📄 Description
AppArmor introduces the @{run} variable, which is used in
<abstractions/dbus-strict> and <abstractions/dbus-session-strict> among
other places. Thus, we must #include <tunables/run> to be able to call
these abstractions.
Standard profiles rely on <tunables/global> to include <tunables/run>, since it exists in previous AppArmor versions, too.
As an attempt at backwards compatibility, we #include if exists insteadof #include, since there is no <tunables/run> in AppArmor 2.x.
However, if exists is a relatively new feature, see e.g.https://phabricator.kde.org/D14526
(However, do note that if exists does not appear as a new feature in
https://gitlab.com/apparmor/apparmor/-/wikis/Release_Notes_2.13).
Therefore, this commit restricts our compatibility to relatively new
(<10 months) old AppArmor releases only.
As an alternative, we could detect the AppArmor version at configuretime, and emit a firejail-default profile based on that.
Here, I opted for the simpler approach, as distributions likely to ship >10 months old AppArmor (Debian) support Firejail on their own via backports (according to https://github.com/netblue30/firejail/security/policy), anyways.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.