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

abi <abi/4.0>,

include <tunables/global>

@{exec_path}  = @{lib}/kf{5,6}/kscreen_backend_launcher
@{exec_path} += @{lib}/@{multiarch}/{,libexec/}kf{5,6}/kscreen_backend_launcher
profile kscreen_backend_launcher /{{,usr/}lib{,exec,32,64}/kf{5,6}/kscreen_backend_launcher,{,usr/}lib{,exec,32,64}/*-linux-gnu*/{,libexec/}kf{5,6}/kscreen_backend_launcher} flags=(complain) {
  include <abstractions/base>
  include <abstractions/kde-strict>

  @{exec_path} mr,

  /dev/tty r,

  include if exists <local/kscreen_backend_launcher>
}