feat(profiles): add aa-teardown

This commit is contained in:
Alexandre Pujol 2023-09-03 20:27:32 +01:00
parent 2a1c3bfe1f
commit ca2469c470
Failed to generate hash of commit

View file

@ -0,0 +1,24 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/aa-teardown
profile aa-teardown @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
capability dac_read_search,
@{exec_path} mr,
@{bin}/{,ba,da}sh rix,
@{lib}/apparmor/apparmor.systemd rPx,
/dev/tty rw,
include if exists <local/aa-teardown>
}