# 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}/xarchiver profile xarchiver @{exec_path} { include include include include include include include include include @{exec_path} mrix, @{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}/{,@{multiarch}-}ar rix, @{open_path} rPx -> child-open, /etc/fstab r, owner @{user_config_dirs}/xarchiver/ rw, owner @{user_config_dirs}/xarchiver/xarchiverrc{,.*} rw, owner @{HOME}/.bz2 rw, / r, /home/ r, #owner @{HOME}/ r, #owner @{HOME}/** rw, @{MOUNTS}/ r, @{MOUNTS}/** rw, /tmp/ r, owner @{tmp}/** rw, @{PROC}/@{pid}/mountinfo r, @{PROC}/@{pid}/mounts r, owner @{PROC}/@{pid}/fd/ r, owner /dev/tty@{int} rw, include if exists } # vim:syntax=apparmor