Add some systemd profiles.
This commit is contained in:
parent
665fd26419
commit
faa3e70c8f
3 changed files with 93 additions and 0 deletions
20
apparmor.d/groups/systemd/hostnamectl
Normal file
20
apparmor.d/groups/systemd/hostnamectl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# 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/,}bin/hostnamectl
|
||||
profile hostnamectl @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/machine-id r,
|
||||
|
||||
@{PROC}/sys/kernel/random/boot_id r,
|
||||
|
||||
include if exists <local/hostnamectl>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue