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

abi <abi/4.0>,

include <tunables/global>

@{att} = /att/glycin/
profile :glycin:loaders flags=(attach_disconnected,attach_disconnected.path=@{att}) {
  include <abstractions/attached/base>
  include <abstractions/fonts>

  signal (send receive) peer=bwrap//&loaders,

  unix (send receive) type=stream,

  @{lib}/glycin-loaders/@{d}+/glycin-* mr,

  @{att}/usr/share/glycin-loaders/{,**} r,

  @{att}/usr/share/gtksourceview-2.0/{,**} r,
  @{att}/usr/share/gtksourceview-3.0/{,**} r,
  @{att}/usr/share/gtksourceview-4/{,**} r,
  @{att}/usr/share/gtksourceview-5/{,**} r,

  include if exists <local/ns/glycin/loaders>
}

# vim:syntax=apparmor
