Add systemd-user-sessions.

This commit is contained in:
Alexandre Pujol 2021-10-07 15:01:55 +01:00
parent ba0706a2d2
commit b659edf8ae
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,28 @@
# 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>
capability net_admin,
ptrace (read) peer=unconfined,
@{exec_path} mr,
owner @{run}/.#nologin* rw,
owner @{run}/.#nologin rw,
owner @{run}/nologin rw,
@{PROC}/1/environ r,
@{PROC}/cmdline r,
@{PROC}/sys/kernel/osrelease r,
include if exists <local/systemd-user-sessions>
}