feat(abs): add abstraction/webkit.

This commit is contained in:
Alexandre Pujol 2024-11-21 19:53:24 +00:00
parent 33a66ef6a2
commit 36d787fa44
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 33 additions and 29 deletions

View file

@ -15,6 +15,7 @@ profile foliate @{exec_path} flags=(attach_disconnected) {
include <abstractions/p11-kit>
include <abstractions/ssl_certs>
include <abstractions/user-download-strict>
include <abstractions/webkit>
capability dac_override,
@ -30,31 +31,17 @@ profile foliate @{exec_path} flags=(attach_disconnected) {
@{bin}/bwrap rix,
@{bin}/gjs-console rix,
@{bin}/xdg-dbus-proxy rix,
@{bin}/speech-dispatcher rPx,
@{open_path} rPx -> child-open-help,
@{lib}/{,@{multiarch}/}webkit{2,}gtk-*/WebKitNetworkProcess rix,
@{lib}/{,@{multiarch}/}webkit{2,}gtk-*/WebKitWebProcess rix,
/usr/share/com.github.johnfactotum.Foliate/{,**} r,
owner /bindfile@{rand6} rw,
owner /.flatpak-info r,
owner @{user_books_dirs}/{,**} r,
owner @{user_torrents_dirs}/{,**} r,
owner @{user_cache_dirs}/com.github.johnfactotum.Foliate/{,**} rwlk,
owner @{user_share_dirs}/com.github.johnfactotum.Foliate/{,**} rwlk,
owner @{run}/user/@{uid}/.flatpak/ w,
owner @{run}/user/@{uid}/.flatpak/webkit-*/{,bwrapinfo.json} rw,
owner @{run}/user/@{uid}/webkitgtk/ w,
owner @{run}/user/@{uid}/webkitgtk/a11y-proxy-@{rand6} rw,
owner @{run}/user/@{uid}/webkitgtk/bus-proxy-@{rand6} rw,
owner @{run}/user/@{uid}/webkitgtk/dbus-proxy-@{rand6} rw,
@{sys}/devices/virtual/dmi/id/chassis_type r,
@{sys}/fs/cgroup/user.slice/user-@{uid}.slice/user@@{uid}.service/app.slice/app-dbus*org.gnome.Nautilus.slice/dbus*org.gnome.Nautilus@*.service/memory.* r,
@{sys}/fs/cgroup/user.slice/user-@{uid}.slice/user@@{uid}.service/app.slice/app-gnome-com.github.johnfactotum.Foliate-@{int}.scope/memory.* r,