Add systemd-user-runtime-dir.
This commit is contained in:
parent
0d5d65b0af
commit
ba0706a2d2
1 changed files with 34 additions and 0 deletions
34
apparmor.d/groups/systemd/systemd-user-runtime-dir
Normal file
34
apparmor.d/groups/systemd/systemd-user-runtime-dir
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
# 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-user-runtime-dir
|
||||||
|
profile systemd-user-runtime-dir @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
capability dac_override,
|
||||||
|
capability dac_read_search,
|
||||||
|
capability fowner,
|
||||||
|
capability net_admin,
|
||||||
|
capability sys_admin,
|
||||||
|
|
||||||
|
ptrace (read) peer=unconfined,
|
||||||
|
|
||||||
|
mount fstype=tmpfs options=(rw,nosuid,nodev) -> @{run}/user/@{uid}/,
|
||||||
|
umount @{run}/user/@{uid}/,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{run}/user/@{uid}/{,**} rw,
|
||||||
|
|
||||||
|
@{PROC}/1/environ r,
|
||||||
|
@{PROC}/cmdline r,
|
||||||
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
|
||||||
|
include if exists <local/systemd-user-runtime-dir>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue