diff --git a/apparmor.d/groups/freedesktop/xdg-desktop-portal-hyprland b/apparmor.d/groups/freedesktop/xdg-desktop-portal-hyprland new file mode 100644 index 00000000..460523d1 --- /dev/null +++ b/apparmor.d/groups/freedesktop/xdg-desktop-portal-hyprland @@ -0,0 +1,40 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 odomingao +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{lib}/xdg-desktop-portal-hyprland +profile xdg-desktop-portal-hyprland @{exec_path} { + include + include + include + include + include + include + include + include + + @{exec_path} mr, + + @{sh_path} ix, + @{bin}/hyprland-share-picker rix, + @{bin}/slurp rix, + + owner /tmp/hypr/ rw, + owner /tmp/hypr/\#@{int} rwkl, + owner /tmp/hypr/hyprland-share-picker.conf* rwkl, + + /sys/devices/virtual/dmi/id/bios_vendor r, + /sys/devices/virtual/dmi/id/board_vendor r, + /sys/devices/virtual/dmi/id/product_name r, + /sys/devices/virtual/dmi/id/sys_vendor r, + + owner @{PROC}/@{pid}/cmdline r, + + include if exists +} + +# vim:syntax=apparmor