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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/gnome-extensions-app
@{att} = ""
profile gnome-extensions-app /{,usr/}bin/gnome-extensions-app flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/common/gnome>
  include <abstractions/nameservice-strict>

  @{exec_path} mr,

  @{sh_path}         rix,
  @{bin}/gjs-console rix,
  @{open_path}       rpx -> child-open-help,

  /usr/share/gnome-shell/org.gnome.Extensions* r,
  /usr/share/terminfo/** r,

  owner @{PROC}/@{pid}/mounts r,
  owner @{PROC}/@{pids}/task/@{tid}/stat r,

  /dev/tty rw,

  include if exists <local/gnome-extensions-app>
}

# vim:syntax=apparmor
