apparmor.d/apparmor.d/profiles-s-z/zathura

35 lines
817 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 valoq <valoq@mailbox.org>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/zathura{,-sandbox}
profile zathura @{exec_path} {
include <abstractions/base>
include <abstractions/dconf-write>
include <abstractions/desktop>
include <abstractions/fontconfig-cache-read>
include <abstractions/nameservice-strict>
include <abstractions/user-read-strict>
@{exec_path} mr,
/usr/share/file/{,**} r,
/usr/share/poppler/{,**} r,
/etc/xdg/{,**} r,
/etc/zathurarc r,
owner @{user_config_dirs}/zathura/** r,
owner @{user_share_dirs}/zathura/ r,
owner @{user_share_dirs}/zathura/** rwk,
owner @{tmp}/gtkprint* rw,
include if exists <local/zathura>
}
# vim:syntax=apparmor