feat(profile): add aa-unconfined.

This commit is contained in:
Alexandre Pujol 2024-09-10 18:39:29 +01:00
parent e4f963f30f
commit 3ad53a2bb0
Failed to generate hash of commit

View file

@ -0,0 +1,44 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/aa-unconfined
profile aa-unconfined @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/python>
capability dac_read_search,
capability sys_ptrace,
ptrace read,
@{exec_path} mr,
@{bin}/ r,
@{bin}/netstat Px,
@{bin}/ss Px,
/usr/share/terminfo/** r,
/etc/apparmor/logprof.conf r,
@{etc_ro}/inputrc r,
owner @{tmp}/@{rand8} rw,
owner @{tmp}/apparmor-bugreport-@{rand8}.txt rw,
owner /var/tmp/@{rand8} rw,
@{PROC}/ r,
@{PROC}/@{pid}/cmdline r,
@{PROC}/@{pids}/attr/apparmor/current r,
@{PROC}/@{pids}/attr/current r,
owner @{PROC}/@{pid}/mounts r,
include if exists <local/aa-unconfined>
}
# vim:syntax=apparmor