mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Add systemd-user-sessions.
This commit is contained in:
parent
ba0706a2d2
commit
b659edf8ae
28
apparmor.d/groups/systemd/systemd-user-sessions
Normal file
28
apparmor.d/groups/systemd/systemd-user-sessions
Normal 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>
|
||||
}
|
Loading…
Reference in New Issue
Block a user