feat(tunables): add paths tunable

To track common path of some major software.
This commit is contained in:
Alexandre Pujol 2023-12-08 17:51:08 +00:00
parent bb947318a5
commit 9e402987c6
Failed to generate hash of commit
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# 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}