39 lines
1,001 B
Text
39 lines
1,001 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/systemd/systemd-user-runtime-dir
|
|
profile systemd-user-runtime-dir @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/bus-system>
|
|
include <abstractions/bus/org.freedesktop.login1>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/common/systemd>
|
|
|
|
capability dac_override,
|
|
capability dac_read_search,
|
|
capability fowner,
|
|
capability net_admin,
|
|
capability sys_admin,
|
|
|
|
network unix stream,
|
|
|
|
mount fstype=tmpfs options=(rw,nosuid,nodev) -> @{run}/user/@{uid}/,
|
|
umount @{run}/user/@{uid}/,
|
|
|
|
unix (bind) type=stream addr=@@{udbus}/bus/systemd-user-ru/system,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/etc/machine-id r,
|
|
|
|
@{run}/user/@{uid}/{,**} rw,
|
|
|
|
include if exists <local/systemd-user-runtime-dir>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|