# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
# LOGPROF-SUGGEST: no

  abi <abi/4.0>,

  owner @{run}/flatpak/wayland-@{int} r,

  # Allow access to the Wayland compositor server socket
  owner @{run}/user/@{uid}/wayland-@{int} rw,

  owner @{att}/dev/shm/@{uuid} rw,

  include if exists <abstractions/flatpak/sockets/wayland.d>

# vim:syntax=apparmor
