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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/setvtrgb
profile setvtrgb @{exec_path} {
  include <abstractions/base>
  include <abstractions/consoles>

  capability sys_tty_config,

  @{exec_path} mr,

  /etc/console-setup/vtrgb r,

  /dev/tty@{int} rw,

  include if exists <local/setvtrgb>
}

# vim:syntax=apparmor
