diff --git a/apparmor.d/tunables/multiarch.d/paths b/apparmor.d/tunables/multiarch.d/paths new file mode 100644 index 00000000..00da3c8d --- /dev/null +++ b/apparmor.d/tunables/multiarch.d/paths @@ -0,0 +1,28 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2023 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +# Define some paths for some program commonly used + +# Browsers + +@{brave_name} = brave{,-beta,-dev,-bin} +@{brave_lib_dirs} = /opt/brave{-bin,.com}{,/@{brave_name}} +@{brave_path} = @{brave_lib_dirs}/@{brave_name} + +@{chrome_name} = chrome{,-beta,-stable,-unstable} +@{chrome_lib_dirs} = /opt/google/@{chrome_name} +@{chrome_path} = @{opera_lib_dirs}/@{chrome_name} + +@{chromium_name} = chromium +@{chromium_lib_dirs} = @{lib}/@{chromium_name} +@{chromium_path} = @{chromium_lib_dirs}/@{chromium_name} + +@{firefox_name} = firefox{,.sh,-esr,-bin} +@{firefox_lib_dirs} = @{lib}/@{firefox_name} /opt/@{firefox_name} +@{firefox_path} = @{bin}/@{firefox_name} @{firefox_lib_dirs}/@{firefox_name} + +@{opera_name} = opera{,-beta,-developer} +@{opera_lib_dirs} = @{lib}/@{multiarch}/@{opera_name} +@{opera_path} = @{opera_lib_dirs}/@{opera_name} + diff --git a/apparmor.d/tunables/multiarch.d/apparmor.d b/apparmor.d/tunables/multiarch.d/system similarity index 100% rename from apparmor.d/tunables/multiarch.d/apparmor.d rename to apparmor.d/tunables/multiarch.d/system