# apparmor.d - Full set of apparmor profiles # Copyright (C) 2022 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = /{usr/,}bin/evince @{libexec}/evinced profile evince @{exec_path} { include include include include include include include deny network inet, deny network inet6, @{exec_path} rix, /{usr/,}bin/{,ba,da}sh rix, /{usr/,}bin/gio-launch-desktop rPx, /{usr/,}lib/@{multiarch}/glib-[0-9]*/gio-launch-desktop rPx -> child-open, /{usr/,}lib/gio-launch-desktop rPx -> child-open, /usr/share/djvu/{,**} r, /usr/share/evince/{,**} r, /usr/share/ghostscript/{,**} r, /usr/share/poppler/{,**} r, /usr/share/thumbnailers/{,*} r, /usr/share/themes/{,**} r, owner @{user_share_dirs}/ r, owner @{user_share_dirs}/gvfs-metadata/{,*} r, owner @{user_cache_dirs}/thumbnails/{,**} rw, owner @{user_config_dirs}/evince/{,*} rw, owner /tmp/*.pdf r, owner /tmp/evince-*/{,**} rw, owner /tmp/gtkprint* rw, owner @{PROC}/@{pid}/fd/ r, owner @{PROC}/@{pid}/mountinfo r, /dev/tty rw, deny /{usr/,}lib/ r, # asks when viewing PostScript files include if exists }