33 lines
836 B
Text
33 lines
836 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
# Copyright (C) 2022 Jeroen Rijken
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{snap/snapd/[0-9]*/,}{usr/,}bin/fc-cache{,-32,-v*}
|
|
profile fc-cache @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/fontconfig-cache-write>
|
|
include <abstractions/fonts>
|
|
|
|
capability dac_read_search,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/var/cache/fontconfig/{,**} rw,
|
|
/var/cache/fontconfig/*.cache-[0-9]* rwk,
|
|
/var/cache/fontconfig/*.cache-[0-9]*.LCK rwl,
|
|
/var/cache/fontconfig/CACHEDIR.TAG.LCK rwl,
|
|
|
|
/var/tmp/mkinitramfs_*/{**,} rwl,
|
|
|
|
# Silencer
|
|
deny network inet6 stream,
|
|
deny network inet stream,
|
|
|
|
include if exists <local/fc-cache>
|
|
}
|