Create xdg-desktop-portal-hyprland

This commit is contained in:
odomingao 2024-08-22 11:17:07 -03:00 committed by Alex
parent a1eaf58427
commit 21bef5a042

View File

@ -0,0 +1,40 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 odomingao
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/xdg-desktop-portal-hyprland
profile xdg-desktop-portal-hyprland @{exec_path} {
include <abstractions/base>
include <abstractions/audio>
include <abstractions/audio-client>
include <abstractions/dconf-write>
include <abstractions/desktop>
include <abstractions/dri-enumerate>
include <abstractions/graphics>
include <abstractions/nameservice-strict>
@{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 <local/xdg-desktop-portal-hyprland>
}
# vim:syntax=apparmor