mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 23:05:11 +01:00
45 lines
1.5 KiB
Text
45 lines
1.5 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/browserpass
|
|
profile browserpass @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/gpg rUx,
|
|
|
|
owner @{HOME}/.password-store/{,**} r,
|
|
owner @{HOME}/.mozilla/firefox/[0-9a-z]*.default/.parentlock rw,
|
|
owner @{HOME}/.mozilla/firefox/[0-9a-z]*.default/extensions/* r,
|
|
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.default/startupCache/scriptCache-*.bin r,
|
|
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.default/startupCache/startupCache.*.little r,
|
|
owner @{user_cache_dirs}/mozilla/firefox/[0-9a-z]*.default/safebrowsing-updating/google[0-9]/goog-phish-proto-[0-9]*.vlpset rw,
|
|
owner /tmp/mozilla-temp-[0-9]* r,
|
|
|
|
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
|
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
|
|
# Inherit Silencer
|
|
deny network inet6 dgram,
|
|
deny network inet dgram,
|
|
deny network inet6 stream,
|
|
deny network inet stream,
|
|
deny owner @{HOME}/.mozilla/firefox/[0-9a-z]*.default/storage/default/{,**} r,
|
|
deny owner @{HOME}/@{XDG_DOWNLOAD_DIR}/{,**} rw,
|
|
deny owner @{run}/user/@{uid}/gnome-shell-disable-extensions w,
|
|
deny owner @{user_share_dirs}/gvfs-metadata/{,**} r,
|
|
deny /dev/dri/card[0-9]* rw,
|
|
deny /dev/dri/renderD128 rw,
|
|
|
|
include if exists <local/browserpass>
|
|
}
|