# 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 /{,usr/}{,s}bin/hyprpicker flags=(complain) {
  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

