# 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}/hyprpicker
profile hyprpicker @{exec_path} {
  include <abstractions/base>

  @{exec_path} mr,
  @{bin}/wl-copy Px,

  /usr/share/icons/** r,

  owner @{run}/user/@{uid}/.hyprpicker* rw,
  owner /dev/shm/wlroots-@{rand6} r,
  
  owner /dev/tty@{int} rw,

  include if exists <local/hyprpicker>
}

# vim:syntax=apparmor

