From 035bb74b299502b58691000a3551d26ed0e50e68 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 21 May 2022 16:50:22 +0100 Subject: [PATCH] feat(profiles: add plymouth. --- apparmor.d/groups/freedesktop/plymouth | 20 +++++++++++++++++++ .../freedesktop/plymouth-set-default-theme | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 apparmor.d/groups/freedesktop/plymouth create mode 100644 apparmor.d/groups/freedesktop/plymouth-set-default-theme diff --git a/apparmor.d/groups/freedesktop/plymouth b/apparmor.d/groups/freedesktop/plymouth new file mode 100644 index 00000000..67473227 --- /dev/null +++ b/apparmor.d/groups/freedesktop/plymouth @@ -0,0 +1,20 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/plymouth +profile plymouth @{exec_path} { + include + + unix (send, receive, connect) type=stream peer=(addr="@/org/freedesktop/plymouthd"), + + @{exec_path} mr, + + @{PROC}/cmdline r, + + include if exists +} \ No newline at end of file diff --git a/apparmor.d/groups/freedesktop/plymouth-set-default-theme b/apparmor.d/groups/freedesktop/plymouth-set-default-theme new file mode 100644 index 00000000..17c2a2b8 --- /dev/null +++ b/apparmor.d/groups/freedesktop/plymouth-set-default-theme @@ -0,0 +1,20 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/plymouth-set-default-theme +profile plymouth-set-default-theme @{exec_path} { + include + + @{exec_path} mr, + + /{usr/,}bin/gawk rix, + /{usr/,}bin/grep rix, + /{usr/,}bin/plymouth rPx, + + include if exists +} \ No newline at end of file