mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-31 07:17:22 +01:00
feat(abs): add the initial version of the systemctl abstraction.
This commit is contained in:
parent
7e8f854b16
commit
af0c87f712
1 changed files with 18 additions and 0 deletions
18
apparmor.d/abstractions/systemctl
Normal file
18
apparmor.d/abstractions/systemctl
Normal file
|
@ -0,0 +1,18 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
include <abstractions/consoles>
|
||||
|
||||
ptrace (read) peer=@{systemd},
|
||||
|
||||
unix (bind) type=stream addr=@@{hex}/bus/systemctl/,
|
||||
|
||||
@{bin}/systemctl mr,
|
||||
|
||||
owner @{run}/systemd/private rw,
|
||||
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
|
||||
include if exists <abstractions/systemctl.d>
|
Loading…
Reference in a new issue