Add more systemd profiles.

This commit is contained in:
Alexandre Pujol 2021-04-15 22:52:14 +01:00
parent 370dda124d
commit 2e5c8f2f72
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 88 additions and 0 deletions

View 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-random-seed
profile systemd-random-seed @{exec_path} {
include <abstractions/base>
include <abstractions/systemd-common>
capability net_admin,
@{exec_path} mr,
/var/lib/systemd/ r,
/var/lib/systemd/random-seed rw,
@{PROC}/sys/kernel/random/poolsize r,
include if exists <local/systemd-random-seed>
}