Merge rename firefox and chromium_browser profile files

... to just the basename and profile name.

This also means to make the firefox and firefox.sh profiles named profiles.

Note: in the `firefox.sh` profile, the local include was added just today, therefore I think changing it (instead of adding) should be fine.

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/975
Approved-by: John Johansen <john@jjmx.net>
Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
John Johansen 2023-02-02 04:10:32 +00:00
commit 0ec11e385c
3 changed files with 4 additions and 5 deletions

View file

@ -18,7 +18,7 @@ include <tunables/global>
# /usr/lib/firefox-4.0b8/firefox
# but not:
# /usr/lib/firefox-4.0b8/firefox.sh
/usr/lib/firefox{,-[0-9]*}/firefox{,*[^s][^h]} {
profile firefox /usr/lib/firefox{,-[0-9]*}/firefox{,*[^s][^h]} {
include <abstractions/audio>
include <abstractions/cups-client>
include <abstractions/dbus-session>
@ -128,7 +128,6 @@ include <tunables/global>
@{HOME}/.mozilla/firefox/*/gmp-widevinecdm/*/lib*so m,
# Site-specific additions and overrides. See local/README for details.
# Local path is disabled, we only enable them for profiles we promote
# out of extras.
include if exists <local/usr.bin.firefox>
include if exists <local/firefox>
}

View file

@ -4,7 +4,7 @@ abi <abi/3.0>,
include <tunables/global>
/usr/lib/firefox/firefox.sh {
profile firefox.sh /usr/lib/firefox/firefox.sh {
include <abstractions/base>
include <abstractions/bash>
include <abstractions/consoles>
@ -20,5 +20,5 @@ include <tunables/global>
/usr/share/misc/magic.mgc r,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/usr.lib.firefox.firefox.sh>
include if exists <local/firefox.sh>
}