# 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
@{att} = ""
profile plymouth /{,usr/}bin/plymouth flags=(complain) {
  include <abstractions/base-strict>
  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
