fix: ensure xdg portal can read any user files.

fix #375
This commit is contained in:
Alexandre Pujol 2024-06-12 22:22:26 +01:00
parent 56464d24bf
commit a5a434f02a
Failed to generate hash of commit
2 changed files with 2 additions and 1 deletions

View file

@ -42,7 +42,7 @@ profile xdg-document-portal @{exec_path} flags=(attach_disconnected) {
/ r, / r,
owner /.flatpak-info r, owner /.flatpak-info r,
owner @{HOME}/*/{,**} r, owner @{HOME}/** r,
owner @{user_share_dirs}/flatpak/db/documents r, owner @{user_share_dirs}/flatpak/db/documents r,
owner @{user_share_dirs}/Trash/files/** r, owner @{user_share_dirs}/Trash/files/** r,

View file

@ -42,6 +42,7 @@ profile xdg-permission-store @{exec_path} flags=(attach_disconnected) {
owner @{user_share_dirs}/flatpak/db/.goutputstream-@{rand6} rw, owner @{user_share_dirs}/flatpak/db/.goutputstream-@{rand6} rw,
owner @{user_share_dirs}/flatpak/db/background rw, owner @{user_share_dirs}/flatpak/db/background rw,
owner @{user_share_dirs}/flatpak/db/devices r, owner @{user_share_dirs}/flatpak/db/devices r,
owner @{user_share_dirs}/flatpak/db/documents rw,
owner @{user_share_dirs}/flatpak/db/notifications rw, owner @{user_share_dirs}/flatpak/db/notifications rw,
/dev/tty@{int} rw, /dev/tty@{int} rw,