apparmor.d/profiles/rtkit-daemon
2021-04-01 16:17:47 +01:00

37 lines
886 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2018-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /usr/libexec/rtkit-daemon
profile rtkit-daemon @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
# To raise process nice and set scheduling policies (real-time) and priorities
capability sys_nice,
# To chroot /proc/
capability sys_chroot,
# To run daemon as rtkit:rtkit
capability setgid,
capability setuid,
# The two are visible in systemd service, but it doesn't seem they're needed
#capability dac_read_search,
#capability sys_ptrace,
@{exec_path} mr,
# When applying policies to processes
@{PROC}/@{pids}/stat r,
@{PROC}/@{pids}/task/@{tid}/stat r,
@{PROC}/@{pids}/limits r,
include if exists <local/rtkit-daemon>
}