feat(systemd): add some systemd-user-generators.
This commit is contained in:
parent
5d6a4e4e4c
commit
eca22caf8a
4 changed files with 190 additions and 1 deletions
23
apparmor.d/groups/systemd/systemd-user-generators-autostart
Normal file
23
apparmor.d/groups/systemd/systemd-user-generators-autostart
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /usr/lib/systemd/user-generators/systemd-xdg-autostart-generator
|
||||
profile systemd-user-generators-autostart @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/xdg/autostart/*.desktop r,
|
||||
|
||||
owner @{run}/user/@{uid}/systemd/generator.late/{,**} rw,
|
||||
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
|
||||
include if exists <local/systemd-user-generators-autostart>
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator
|
||||
profile systemd-user-generators-environment @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/environment.d/{,**} r,
|
||||
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
|
||||
include if exists <local/systemd-user-generators-environment>
|
||||
}
|
||||
16
apparmor.d/groups/systemd/systemd-user-generators-flatpak
Normal file
16
apparmor.d/groups/systemd/systemd-user-generators-flatpak
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /usr/lib/systemd/user-environment-generators/60-flatpak
|
||||
profile systemd-user-generators-flatpak @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/systemd-user-generators-flatpak>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue