mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
Add more systemd profiles.
This commit is contained in:
parent
370dda124d
commit
2e5c8f2f72
4 changed files with 88 additions and 0 deletions
22
apparmor.d/groups/systemd/systemd-environment-d-generator
Normal file
22
apparmor.d/groups/systemd/systemd-environment-d-generator
Normal file
|
@ -0,0 +1,22 @@
|
|||
# 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/user-environment-generators/*
|
||||
profile systemd-environment-d-generator @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/systemd-common>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/environment r,
|
||||
|
||||
owner @{user_config_dirs}/environment.d/{,*.conf} r,
|
||||
|
||||
include if exists <local/systemd-environment-d-generator>
|
||||
}
|
24
apparmor.d/groups/systemd/systemd-random-seed
Normal file
24
apparmor.d/groups/systemd/systemd-random-seed
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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-random-seed
|
||||
profile systemd-random-seed @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/systemd-common>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/var/lib/systemd/ r,
|
||||
/var/lib/systemd/random-seed rw,
|
||||
|
||||
@{PROC}/sys/kernel/random/poolsize r,
|
||||
|
||||
include if exists <local/systemd-random-seed>
|
||||
}
|
17
apparmor.d/groups/systemd/systemd-remount-fs
Normal file
17
apparmor.d/groups/systemd/systemd-remount-fs
Normal file
|
@ -0,0 +1,17 @@
|
|||
# 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-remount-fs
|
||||
profile systemd-remount-fs @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/systemd-common>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/systemd-remount-fs>
|
||||
}
|
25
apparmor.d/groups/systemd/systemd-xdg-autostart-generator
Normal file
25
apparmor.d/groups/systemd/systemd-xdg-autostart-generator
Normal file
|
@ -0,0 +1,25 @@
|
|||
# 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/user-generators/systemd-xdg-autostart-generator
|
||||
profile systemd-xdg-autostart-generator @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/systemd-common>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/xdg/autostart/{,*.desktop} r,
|
||||
|
||||
owner @{user_config_dirs}/autostart/{,*.desktop} r,
|
||||
owner @{run}/user/@{pid}/systemd/generator.late/{,**} rw,
|
||||
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
|
||||
include if exists <local/systemd-xdg-autostart-generator>
|
||||
}
|
Loading…
Reference in a new issue