refractor(profiles): unify the name of the local variables.

This commit is contained in:
Alexandre Pujol 2023-09-13 20:55:20 +01:00
parent 57f914d7fd
commit 2d2693bd99
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
20 changed files with 166 additions and 166 deletions

View file

@ -7,12 +7,12 @@ abi <abi/3.0>,
include <tunables/global>
@{firefox_name} = firefox{,.sh,-esr,-bin}
@{firefox_lib_dirs} = @{lib}/@{firefox_name} /opt/@{firefox_name}
@{firefox_config_dirs} = @{HOME}/.mozilla/
@{firefox_cache_dirs} = @{user_cache_dirs}/mozilla/
@{name} = firefox{,.sh,-esr,-bin}
@{lib_dirs} = @{lib}/@{name} /opt/@{name}
@{config_dirs} = @{HOME}/.mozilla/
@{cache_dirs} = @{user_cache_dirs}/mozilla/
@{exec_path} = @{bin}/@{firefox_name} @{firefox_lib_dirs}/@{firefox_name}
@{exec_path} = @{bin}/@{name} @{lib_dirs}/@{name}
profile firefox @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/audio>
@ -133,14 +133,14 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
@{bin}/basename rix,
@{bin}/expr rix,
@{firefox_lib_dirs}/{,**} r,
@{firefox_lib_dirs}/*.so mr,
@{firefox_lib_dirs}/crashreporter rPx,
@{firefox_lib_dirs}/glxtest rPx,
@{firefox_lib_dirs}/minidump-analyzer rPx,
@{firefox_lib_dirs}/pingsender rPx,
@{firefox_lib_dirs}/plugin-container rPx,
@{firefox_lib_dirs}/vaapitest rPx,
@{lib_dirs}/{,**} r,
@{lib_dirs}/*.so mr,
@{lib_dirs}/crashreporter rPx,
@{lib_dirs}/glxtest rPx,
@{lib_dirs}/minidump-analyzer rPx,
@{lib_dirs}/pingsender rPx,
@{lib_dirs}/plugin-container rPx,
@{lib_dirs}/vaapitest rPx,
@{lib}/mozilla/kmozillahelper rPUx,
@{lib}/@{multiarch}/qt5/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemX11Plugin.so mr,
@ -164,7 +164,7 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
# As a temporary solution - see issue #128
@{bin}/keepassxc-proxy rix,
/usr/share/@{firefox_name}/{,**} r,
/usr/share/@{name}/{,**} r,
/usr/share/doc/{,**} r,
/usr/share/egl/{,**} r,
/usr/share/icu/@{int}.@{int}/*.dat r,
@ -173,7 +173,7 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
/usr/share/webext/{,**} r,
/usr/share/xul-ext/kwallet5/* r,
/etc/@{firefox_name}/{,**} r,
/etc/@{name}/{,**} r,
/etc/cups/client.conf r,
/etc/fstab r,
/etc/igfx_user_feature{,_next}.txt w,
@ -205,18 +205,18 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
owner @{user_share_dirs}/mime/packages/user-extension-{htm,html,xht,xhtml,shtml}.xml rw,
owner @{user_share_dirs}/mime/packages/user-extension-{htm,html,xht,xhtml,shtml}.xml.* rw,
owner @{firefox_config_dirs}/ rw,
owner @{firefox_config_dirs}/{extensions,systemextensionsdev}/ rw,
owner @{firefox_config_dirs}/extensions/\{*\}/ r,
owner @{firefox_config_dirs}/firefox/ rw,
owner @{firefox_config_dirs}/firefox/*/ rw,
owner @{firefox_config_dirs}/firefox/*/** rwk,
owner @{firefox_config_dirs}/firefox/installs.ini rw,
owner @{firefox_config_dirs}/firefox/profiles.ini rw,
owner @{firefox_config_dirs}/native-messaging-hosts/org.keepassxc.keepassxc_browser.json r,
owner @{config_dirs}/ rw,
owner @{config_dirs}/{extensions,systemextensionsdev}/ rw,
owner @{config_dirs}/extensions/\{*\}/ r,
owner @{config_dirs}/firefox/ rw,
owner @{config_dirs}/firefox/*/ rw,
owner @{config_dirs}/firefox/*/** rwk,
owner @{config_dirs}/firefox/installs.ini rw,
owner @{config_dirs}/firefox/profiles.ini rw,
owner @{config_dirs}/native-messaging-hosts/org.keepassxc.keepassxc_browser.json r,
owner @{firefox_cache_dirs}/ rw,
owner @{firefox_cache_dirs}/** rwk,
owner @{cache_dirs}/ rw,
owner @{cache_dirs}/** rwk,
/tmp/ r,
/var/tmp/ r,
@ -224,10 +224,10 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
owner /tmp/user/@{uid}/* rwk,
owner /tmp/user/@{uid}/Temp-*/ rw,
owner /tmp/user/@{uid}/Temp-*/* rwk,
owner /tmp/user/@{uid}/@{firefox_name}/ rw,
owner /tmp/user/@{uid}/@{firefox_name}/* rwk,
owner /tmp/@{firefox_name}/ rw,
owner /tmp/@{firefox_name}/* rwk,
owner /tmp/user/@{uid}/@{name}/ rw,
owner /tmp/user/@{uid}/@{name}/* rwk,
owner /tmp/@{name}/ rw,
owner /tmp/@{name}/* rwk,
owner /tmp/* rw,
owner /tmp/firefox_*/ rw,
owner /tmp/firefox_*/* rwk,
@ -295,7 +295,7 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
/tmp/.X0-lock r,
# Silencer
deny @{firefox_lib_dirs}/** w,
deny @{lib_dirs}/** w,
deny @{run}/user/@{uid}/gnome-shell-disable-extensions w,
deny /tmp/MozillaUpdateLock-* w,
deny owner @{HOME}/.* r,