feat(profile): add firefox crashhelper

This commit is contained in:
Alexandre Pujol 2025-06-16 22:42:11 +02:00
parent b88cf164ec
commit 8fa7c49a65
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 27 additions and 0 deletions

View file

@ -58,6 +58,7 @@
@{lib_dirs}/{,**} r, @{lib_dirs}/{,**} r,
@{lib_dirs}/*.so mr, @{lib_dirs}/*.so mr,
@{lib_dirs}/crashhelper rPx,
@{lib_dirs}/crashreporter rPx, @{lib_dirs}/crashreporter rPx,
@{lib_dirs}/minidump-analyzer rPx, @{lib_dirs}/minidump-analyzer rPx,
@{lib_dirs}/pingsender rPx, @{lib_dirs}/pingsender rPx,

View file

@ -0,0 +1,26 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{name} = firefox{,.sh,-esr,-bin}
@{lib_dirs} = @{lib}/@{name} /opt/@{name}
@{config_dirs} = @{HOME}/.mozilla/
@{cache_dirs} = @{user_cache_dirs}/mozilla/
@{exec_path} = @{lib_dirs}/crashhelper
profile firefox-crashhelper @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
owner "@{config_dirs}/firefox/Crash Reports/" rw,
owner "@{config_dirs}/firefox/Crash Reports/crash_helper_server.log" rw,
include if exists <local/firefox-crashhelper>
}
# vim:syntax=apparmor