# apparmor.d - Full set of apparmor profiles # Copyright (C) 2019-2021 Mikhail Morfikov # Copyright (C) 2023-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{bin}/qpdfview profile qpdfview @{exec_path} { include include include include include include include include include @{exec_path} mr, # For PDF's internal compression @{bin}/gzip rix, @{bin}/bzip2 rix, @{bin}/xz rix, @{lib}/firefox/firefox rPUx, @{open_path} rPx -> child-open, /usr/share/poppler/** r, /usr/share/djvu/** r, /etc/fstab r, /etc/machine-id r, /var/lib/dbus/machine-id r, owner @{HOME}/ r, owner @{user_documents_dirs}/{,**} rw, owner @{user_books_dirs}/{,**} rw, owner @{user_torrents_dirs}/{,**} rw, owner @{user_work_dirs}/{,**} rw, owner @{user_config_dirs}/qpdfview/ rw, owner @{user_config_dirs}/qpdfview/* rwkl -> @{user_config_dirs}/qpdfview/#@{int}, owner @{user_share_dirs}/qpdfview/ rw, owner @{user_share_dirs}/qpdfview/** rwk, owner /dev/shm/#@{int} rw, owner @{tmp}/@{hex} rw, owner @{tmp}/#@{int} rw, owner @{tmp}/qpdfview.*.pdf rwl -> /tmp/#@{int}, owner @{PROC}/@{pid}/cmdline r, owner @{PROC}/@{pid}/mountinfo r, owner @{PROC}/@{pid}/mounts r, owner /dev/tty@{int} rw, include if exists } # vim:syntax=apparmor