mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
# vim:syntax=apparmor
|
|
# ------------------------------------------------------------------
|
|
#
|
|
# Copyright (C) 2018-2020 Mikhail Morfikov
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
# License published by the Free Software Foundation.
|
|
#
|
|
# ------------------------------------------------------------------
|
|
|
|
#abi <abi/3.0>,
|
|
|
|
#include <tunables/global>
|
|
|
|
@{OPERA_INSTALLDIR} = /{usr/,}lib/@{multiarch}/opera{,-beta,-developer}
|
|
@{OPERA_HOMEDIR} = @{HOME}/.config/opera{,-beta,-developer}
|
|
@{OPERA_CACHEDIR} = @{HOME}/.cache/opera{,-beta,-developer}
|
|
|
|
@{exec_path} = @{OPERA_INSTALLDIR}/opera_crashreporter
|
|
profile opera-crashreporter @{exec_path} {
|
|
#include <abstractions/base>
|
|
#include <abstractions/nameservice>
|
|
#include <abstractions/fonts>
|
|
#include <abstractions/fontconfig-cache-read>
|
|
#include <abstractions/freedesktop.org>
|
|
#include <abstractions/openssl>
|
|
#include <abstractions/ssl_certs>
|
|
#include <abstractions/deny-root-dir-access>
|
|
|
|
ptrace (trace, read) peer=opera,
|
|
|
|
@{exec_path} mr,
|
|
|
|
owner @{OPERA_HOMEDIR}/crash_count.txt rwk,
|
|
owner @{OPERA_HOMEDIR}/GPUCache/index r,
|
|
owner @{OPERA_HOMEDIR}/GPUCache/data_* r,
|
|
|
|
deny owner @{PROC}/@{pids}/cmdline r,
|
|
deny owner @{PROC}/@{pids}/environ r,
|
|
owner @{PROC}/@{pids}/task/ r,
|
|
|
|
deny @{sys}/devices/system/cpu/cpufreq/policy[0-9]/cpuinfo_max_freq r,
|
|
|
|
#include if exists <local/opera-crashreporter>
|
|
}
|