diff --git a/apparmor.d/profiles-a-f/evince b/apparmor.d/profiles-a-f/evince new file mode 100644 index 00000000..4f2231b4 --- /dev/null +++ b/apparmor.d/profiles-a-f/evince @@ -0,0 +1,49 @@ +# 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 /{usr/,}bin/evinced +profile evince @{exec_path} { + include + 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/share/evince/{,**} r, + /usr/share/poppler/{,**} r, + /usr/share/thumbnailers/{,*} r, + /usr/share/themes/{,**} r, + + owner @{user_share_dirs}/ r, + owner @{user_cache_dirs}/thumbnails/{,**} rw, + owner @{user_config_dirs}/evince/{,*} rw, + + owner @{run}/user/@{uid}/dconf/user rw, + + owner /tmp/evince-*/{,**} rw, + /tmp/gtkprint* rw, + /tmp/*.pdf r, + + owner @{PROC}/@{pid}/fd/ r, + owner @{PROC}/@{pid}/mountinfo r, + + /dev/tty rw, + + include if exists +} diff --git a/dists/flags/main.flags b/dists/flags/main.flags index e40a14c6..d0867af9 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -34,6 +34,7 @@ dkms attach_disconnected,complain dmesg complain e2fsck complain e2image complain +evince complain fatlabel complain fdisk complain fsck-ext4 complain