From 411af09c9701004f7c7ff9d3fadb170c1a62e306 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 31 Mar 2020 19:49:26 +0000 Subject: [PATCH] Merge branch 'mesa-20.0' into 'master' abstractions/mesa: allow checking if the kernel supports the i915 perf interface See merge request apparmor/apparmor!464 Acked-by: Vincas Dargis Acked-by: Christian Boltz for master and 2.13 (cherry picked from commit f56bab3f75dfbdfc9456628a392cabbb985a44bb) 61571da1 abstractions/mesa: allow checking if the kernel supports the i915 perf interface --- profiles/apparmor.d/abstractions/mesa | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiles/apparmor.d/abstractions/mesa b/profiles/apparmor.d/abstractions/mesa index 68e7579e9..be699c774 100644 --- a/profiles/apparmor.d/abstractions/mesa +++ b/profiles/apparmor.d/abstractions/mesa @@ -4,6 +4,10 @@ # System files /dev/dri/ r, # libGLX_mesa.so calls drmGetDevice2() + # Needed to check if the kernel supports the i915 perf interface + # (src/intel/perf/gen_perf.c, load_oa_metrics()) + @{PROC}/sys/dev/i915/perf_stream_paranoid r, + # User files owner @{HOME}/.cache/ w, # if user clears all caches owner @{HOME}/.cache/mesa_shader_cache/ w,