Add 7 systemd profiles.
This commit is contained in:
parent
b6152def16
commit
4dc8d53c0e
7 changed files with 292 additions and 0 deletions
24
apparmor.d/groups/systemd/systemd-machined
Normal file
24
apparmor.d/groups/systemd/systemd-machined
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}lib/systemd/systemd-machined
|
||||
profile systemd-machined @{exec_path} flags=(complain) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/systemd-common>
|
||||
|
||||
capability sys_ptrace,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/machine-id r,
|
||||
|
||||
@{run}/systemd/userdb/io.systemd.Machine rw,
|
||||
@{run}/systemd/machines/ r,
|
||||
|
||||
include if exists <local/systemd-machined>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue