apparmor.d -> profiles
This commit is contained in:
parent
c408a878b7
commit
e9b8e62fcd
726 changed files with 0 additions and 0 deletions
44
profiles/rtkit-daemon
Normal file
44
profiles/rtkit-daemon
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# vim:syntax=apparmor
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2018-2021 Mikhail Morfikov
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of version 2 of the GNU General Public
|
||||
# License published by the Free Software Foundation.
|
||||
#
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
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>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue