feat(profiles: add plymouth.

This commit is contained in:
Alexandre Pujol 2022-05-21 16:50:22 +01:00
parent 0dbe0d2790
commit 035bb74b29
Failed to generate hash of commit
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/plymouth
profile plymouth @{exec_path} {
include <abstractions/base>
unix (send, receive, connect) type=stream peer=(addr="@/org/freedesktop/plymouthd"),
@{exec_path} mr,
@{PROC}/cmdline r,
include if exists <local/plymouth>
}

View file

@ -0,0 +1,20 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/plymouth-set-default-theme
profile plymouth-set-default-theme @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/{usr/,}bin/gawk rix,
/{usr/,}bin/grep rix,
/{usr/,}bin/plymouth rPx,
include if exists <local/plymouth-set-default-theme>
}