]> git.lizzy.rs Git - torbrowser-launcher.git/commitdiff
AppArmor: include vulkan abstraction if it's available
authorintrigeri <intrigeri@boum.org>
Sun, 16 May 2021 13:47:54 +0000 (13:47 +0000)
committerintrigeri <intrigeri@boum.org>
Sun, 16 May 2021 13:47:54 +0000 (13:47 +0000)
Since the vulkan abstraction is not available on older AppArmor versions, this
relies on the "conditional includes" AppArmor parser feature, which is available
in AppArmor v2.10.4, v2.11.2, v2.12.1, and v2.13.

closes #554

apparmor/torbrowser.Browser.firefox

index 57c03594bb7b19eff1855ba9fd156c645be1f661..81d8925689ea04949cb6444741b0708ee28523a8 100644 (file)
@@ -6,6 +6,7 @@
 profile torbrowser_firefox @{torbrowser_firefox_executable} {
   #include <abstractions/audio>
   #include <abstractions/gnome>
+  #include if exists <abstractions/vulkan>
 
   # Uncomment the following lines if you want to give the Tor Browser read-write
   # access to most of your personal files.