# apparmor.d - Full set of apparmor profiles # Copyright (C) 2019-2021 Mikhail Morfikov # Copyright (C) 2021-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{bin}/engrampa profile engrampa @{exec_path} { include include include include include include include include include include include include @{exec_path} mr, @{sh_path} rix, @{bin}/ls rix, @{bin}/rm rix, @{bin}/mv rix, @{bin}/cp rix, # Archivers @{bin}/7z rix, @{lib}/p7zip/7z rix, @{bin}/unrar-nonfree rix, @{bin}/zip rix, @{bin}/unzip rix, @{bin}/tar rix, @{bin}/xz rix, @{bin}/bzip2 rix, @{bin}/cpio rix, @{bin}/gzip rix, @{bin}/zstd rix, # For deb packages @{bin}/dpkg-deb rix, @{open_path} rPx -> child-open, # Allowed apps to open @{bin}/engrampa rPx, @{bin}/geany rPx, @{bin}/viewnior rPUx, @{bin}/spacefm rPx, @{bin}/ristretto rPUx, /usr/share/engrampa/{,**} r, /usr/share/**.desktop r, /etc/magic r, /etc/fstab r, / r, /home/ r, @{MOUNTS}/ r, @{MOUNTS}/** rw, owner @{user_cache_dirs}/ rw, owner @{user_cache_dirs}/.fr-*/{,**} rw, owner @{user_config_dirs}/ r, owner @{user_config_dirs}/engrampa/ rw, owner @{user_config_dirs}/mimeapps.list{,.@{rand6}} rw, owner @{user_share_dirs}/ r, /tmp/ r, @{run}/mount/utab r, @{PROC}/@{pid}/mountinfo r, @{PROC}/@{pid}/mounts r, owner @{PROC}/@{pid}/cgroup r, owner @{PROC}/@{pid}/fd/ r, # file_inherit owner /dev/tty@{int} rw, deny owner @{user_share_dirs}/gvfs-metadata/{,*} r, include if exists } # vim:syntax=apparmor