# 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}/{,gnome-shell/}gnome-shell-overrides-migration.sh
@{att} = ""
profile gnome-shell-overrides-migration /{,usr/}lib{,exec,32,64}/{,gnome-shell/}gnome-shell-overrides-migration.sh flags=(complain) {
  include <abstractions/base-strict>

  @{exec_path} mr,

  @{sh_path}        rix,
  @{bin}/gsettings  rpx,

  owner @{user_share_dirs}/gnome-shell/ rw,
  owner @{user_share_dirs}/gnome-shell/gnome-overrides-migrated rw,

  include if exists <local/gnome-shell-overrides-migration>
}

# vim:syntax=apparmor
