mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
80 lines
2.2 KiB
Plaintext
80 lines
2.2 KiB
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/font-manager
|
|
profile font-manager @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/gtk>
|
|
include <abstractions/fonts>
|
|
include <abstractions/fontconfig-cache-write>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/ssl_certs>
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} r,
|
|
|
|
/{usr/,}lib/@{multiarch}/webkit*gtk-*/WebKitWebProcess rix,
|
|
/{usr/,}lib/@{multiarch}/webkit*gtk-*/WebKitNetworkProcess rix,
|
|
|
|
/{usr/,}lib/@{multiarch}/gstreamer[0-9]*.[0-9]*/gstreamer-[0-9]*.[0-9]*/gst-plugin-scanner rPUx,
|
|
|
|
owner @{HOME}/.cache/ rw,
|
|
owner @{HOME}/.cache/font-manager/ rw,
|
|
owner @{HOME}/.cache/font-manager/* rwk,
|
|
|
|
owner @{HOME}/.cache/gstreamer-[0-9]*/ rw,
|
|
owner @{HOME}/.cache/gstreamer-[0-9]*/registry.*.bin{,.tmp*} rw,
|
|
|
|
owner @{HOME}/.config/font-manager/ rw,
|
|
owner @{HOME}/.config/font-manager/* rw,
|
|
|
|
owner @{HOME}/.config/fontconfig/ rw,
|
|
owner @{HOME}/.config/fontconfig/conf.d/ rw,
|
|
owner @{HOME}/.config/fontconfig/conf.d/* rw,
|
|
|
|
owner @{HOME}/.local/share/fonts/ rw,
|
|
owner "@{HOME}/.local/share/fonts/Google Fonts/" rw,
|
|
owner "@{HOME}/.local/share/fonts/Google Fonts/**" rw,
|
|
|
|
owner @{HOME}/.local/share/ r,
|
|
owner @{HOME}/.local/share/gvfs-metadata/** r,
|
|
|
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
|
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/statm r,
|
|
owner @{PROC}/@{pid}/cmdline r,
|
|
owner @{PROC}/@{pid}/smaps r,
|
|
@{PROC}zoneinfo r,
|
|
|
|
@{sys}/devices/virtual/dmi/id/chassis_type r,
|
|
@{sys}/firmware/acpi/pm_profile r,
|
|
@{sys}/devices/system/node/ r,
|
|
@{sys}/fs/cgroup/{,**} r,
|
|
|
|
/dev/ r,
|
|
/dev/dri/ r,
|
|
|
|
include <abstractions/dconf>
|
|
owner @{run}/user/[0-9]*/dconf/ rw,
|
|
owner @{run}/user/[0-9]*/dconf/user rw,
|
|
|
|
# Silencer
|
|
owner /var/cache/fontconfig/ w,
|
|
deny /var/cache/fontconfig/ w,
|
|
|
|
include if exists <local/font-manager>
|
|
}
|