# 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}/xdg-user-dirs-gtk-update
profile xdg-user-dirs-gtk-update @{exec_path} {
  include <abstractions/base>
  include <abstractions/gtk>

  @{exec_path} mr,

  owner @{user_config_dirs}/gtk-3.0/bookmarks* rw,
  owner @{user_config_dirs}/user-dirs.dirs r,
  owner @{user_config_dirs}/user-dirs.locale r,

  include if exists <local/xdg-user-dirs-gtk-update>
}

# vim:syntax=apparmor
