Add some systemd profiles.

This commit is contained in:
Alexandre Pujol 2021-05-09 00:31:43 +01:00
parent 665fd26419
commit faa3e70c8f
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 93 additions and 0 deletions

View 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>
}