# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/plymouth
profile plymouth @{exec_path} {
  include <abstractions/base>
  include <abstractions/fonts>
  include <abstractions/fontconfig-cache-read>
  include <abstractions/consoles>

  unix (send, receive, connect) type=stream peer=(addr="@/org/freedesktop/plymouthd"),

  @{exec_path} mr,

  @{PROC}/cmdline r,

  include if exists <local/plymouth>
}

# vim:syntax=apparmor
