# 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} = ""
profile gcr-prompter /{,usr/}lib{,exec,32,64}/gcr-prompter flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/gnome-strict>

  @{exec_path} mr,

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

  include if exists <local/gcr-prompter>
}

# vim:syntax=apparmor
