# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 odomingao
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/hyprctl
@{att} = /att/hyprctl/
profile hyprctl /{,usr/}bin/hyprctl flags=(attach_disconnected,attach_disconnected.path=@{att},complain) {
  include <abstractions/attached/base>
  include <abstractions/nameservice-strict>

  @{exec_path} mr,

  include if exists <local/hyprctl>
}

# vim:syntax=apparmor

