# 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/3.0>,

include <tunables/global>

@{exec_path} = @{lib}/gsd-usb-protection
profile gsd-usb-protection @{exec_path} {
  include <abstractions/base>
  include <abstractions/bus-session>
  include <abstractions/dconf-write>

  #aa:dbus own bus=session name=org.gnome.SettingsDaemon.UsbProtection

  @{exec_path} mr,

  /usr/share/glib-2.0/schemas/gschemas.compiled r,

  include if exists <local/gsd-usb-protection>
}
