mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(tunables): add paths tunable
To track common path of some major software.
This commit is contained in:
parent
bb947318a5
commit
9e402987c6
2 changed files with 28 additions and 0 deletions
28
apparmor.d/tunables/multiarch.d/paths
Normal file
28
apparmor.d/tunables/multiarch.d/paths
Normal 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}
|
||||||
|
|
Loading…
Reference in a new issue