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

  abi <abi/4.0>,

  include <abstractions/dri>
  include <abstractions/mesa>
  include <abstractions/nvidia-strict>
  include <abstractions/vulkan-strict>

  /etc/igfx_user_feature{,_next,_report}.txt w,
  /etc/libva.conf r,

  @{sys}/bus/pci/devices/ r,
  @{sys}/devices/system/cpu/cpu@{int}/cache/index@{int}/* r,
  @{sys}/devices/system/cpu/cpu@{int}/online r,
  @{sys}/devices/system/cpu/cpu@{int}/topology/* r,
  @{sys}/devices/system/cpu/cpufreq/policy@{int}/* r,
  @{sys}/devices/system/cpu/present r,
  @{sys}/devices/system/node/ r,
  @{sys}/devices/system/node/node@{int}/meminfo r,

  include if exists <abstractions/graphics.d>

# vim:syntax=apparmor
