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

  abi <abi/4.0>,

  # Allow reading for supported event reports for all input devices. See
  # https://www.kernel.org/doc/Documentation/input/event-codes.txt
  @{sys}/devices/**/input@{int}/capabilities/* r,

  @{sys}/devices/**/input@{int}/ r,
  @{sys}/devices/**/input/input@{int}/event@{int}/uevent r,
  @{sys}/devices/**/input/input@{int}/properties r,
  @{sys}/devices/**/input/input@{int}/uevent r,
  @{sys}/devices/virtual/input/mice/uevent r,

  include if exists <abstractions/sys/input.d>

# vim:syntax=apparmor
