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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/gnome-browser-connector-host
profile gnome-browser-connector-host @{exec_path} {
  include <abstractions/base>
  include <abstractions/python>
  include <abstractions/dconf-write>

  @{exec_path} mr,

  @{bin}/env             rix,
  @{bin}/python3.@{int}  rix,

  @{lib}/python3.@{int}/site-packages/gnome_browser_connector/__pycache__/{,**} rw,

  /usr/share/glib-2.0/schemas/gschemas.compiled r,

  owner @{PROC}/@{pid}/mounts r,

  include if exists <local/gnome-browser-connector-host>
}

# vim:syntax=apparmor
