diff --git a/apparmor.d/groups/gnome/loupe b/apparmor.d/groups/gnome/loupe new file mode 100644 index 00000000..965ce415 --- /dev/null +++ b/apparmor.d/groups/gnome/loupe @@ -0,0 +1,33 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/loupe +profile loupe @{exec_path} flags=(attach_disconnected) { + include + include + include + include + include + include + + @{exec_path} mr, + + @{bin}/bwrap rix, + @{lib}/glycin-loaders/*/glycin-image-rs rix, + + /usr/share/glycin-loaders/{,**} r, + + owner @{HOME}/@{XDG_DESKTOP_DIR}/{,**} r, + owner @{user_books_dirs}/{,**} r, + owner @{user_download_dirs}/{,**} r, + owner @{user_pictures_dirs}/{,**} r, + owner @{user_torrents_dirs}/{,**} r, + owner @{user_work_dirs}/{,**} r, + + include if exists +} \ No newline at end of file