mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-25 06:27:49 +01:00
39 lines
1 KiB
Text
39 lines
1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
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_sandbox
|
|
profile opera-sandbox @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/fonts>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/deny-root-dir-access>
|
|
|
|
# For kernel unprivileged user namespaces
|
|
capability sys_admin,
|
|
capability sys_chroot,
|
|
capability setuid,
|
|
capability setgid,
|
|
|
|
# optional
|
|
capability sys_resource,
|
|
|
|
signal (receive) set=(term, kill) peer=opera,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{OPERA_INSTALLDIR}/opera{,-beta,-developer} rPx,
|
|
|
|
@{PROC}/@{pids}/ r,
|
|
deny owner @{PROC}/@{pid}/oom_{,score_}adj rw,
|
|
|
|
include if exists <local/opera-sandbox>
|
|
}
|