AppArmor profile per binary path with install hint; verified network examples

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 22:08:37 +02:00
co-authored by Claude Sonnet 5.5
parent 530582e826
commit c3ebf21e9c
11 changed files with 133 additions and 7 deletions
+2 -1
View File
@@ -2,10 +2,11 @@
# kernel.apparmor_restrict_unprivileged_userns=1 strips capabilities (mount, etc.)
# from unknown binaries inside a new userns. Same pattern as /etc/apparmor.d/lxc-unshare.
# The profile is unconfined apart from granting `userns`; confinement comes from doos itself.
# Fixed paths for packaging. For any other location run: doos apparmor | sudo tee /etc/apparmor.d/doos
abi <abi/5.0>,
include <tunables/global>
profile doos /{usr/local/bin,home/*/projects/doos/build}/doos flags=(unconfined) {
profile doos /{usr/local/bin,usr/bin,opt/doos/bin,home/*/.local/bin,home/*/bin,home/*/projects/doos/build}/doos flags=(unconfined) {
userns,
@{exec_path} mr,
}