apparmor.d/apparmor.d/groups/systemd/systemd-user-sessions
2022-03-26 20:43:47 +00:00

25 lines
No EOL
579 B
Text

# 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-sessions
profile systemd-user-sessions @{exec_path} {
include <abstractions/base>
include <abstractions/systemd-common>
capability net_admin,
@{exec_path} mr,
owner @{run}/.#nologin* rw,
owner @{run}/.#nologin rw,
owner @{run}/nologin rw,
@{run}/host/container-manager r,
include if exists <local/systemd-user-sessions>
}