Add some profiles.

This commit is contained in:
Alexandre Pujol 2021-05-09 00:34:57 +01:00
parent a8d1205e76
commit e6dc08caec
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
7 changed files with 151 additions and 0 deletions

View file

@ -0,0 +1,23 @@
# 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/fc-cache
profile fc-cache @{exec_path} {
include <abstractions/base>
include <abstractions/fonts>
include <abstractions/fontconfig-cache-write>
@{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,
include if exists <local/fc-cache>
}