# 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>,

  unix (connect send receive) type=stream peer=(label=gnome-shell, addr=@/tmp/.X11-unix/X@{xdisplay}),
  unix (connect send receive) type=stream peer=(label=xkbcomp, addr=@/tmp/.X11-unix/X@{xdisplay}),
  unix (connect send receive) type=stream peer=(label=xwayland, addr=@/tmp/.X11-unix/X@{xdisplay}),

  include if exists <abstractions/flatpak/sockets/fallback-x11.d>

# vim:syntax=apparmor
