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

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{lib}/gcr-prompter
@{att} = /att/gcr-prompter/
profile gcr-prompter /{,usr/}lib{,exec,32,64}/gcr-prompter flags=(attach_disconnected,attach_disconnected.path=@{att},complain) {
  include <abstractions/attached/base>
  include <abstractions/dconf-write>
  include <abstractions/gnome-strict>
  include <abstractions/attached/nameservice-strict>

  @{exec_path} mr,

  owner @{HOME}/@{XDG_SSH_DIR}/ r,

  include if exists <local/gcr-prompter>
}

# vim:syntax=apparmor
