Bug 2098179

Summary: Why do you now need access to all files permission?
Product: [Fedora] Fedora Reporter: rugk <7d28c752>
Component: evinceAssignee: Felipe Borges <feborges>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: caillon+fedoraproject, feborges, gnome-sig, mclasen, mkasik, rstrode, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-25 19:28:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description rugk 2022-06-17 13:48:27 UTC
GNOME Software prompted me for this update:
https://gitlab.gnome.org/GNOME/evince/uploads/b4e1c042aca8ad17e36887f899bd03bb/grafik.png

It says:
> Can access **any** files

(highlighting by me)

Why do you now need access to all files? Was not the idea that exploits or so in a PDF viewer could be mitigated/not have suhc a bad effect if it does not have access to all files? Now, it has access to all files?
IMHO that makes no sense, and I'd kindly ask you to reconsider this decicion.

---

Previous installation:
```
$ flatpak info org.gnome.Evince 

Evince - Dokumentenbetrachter für gängige Dokumentformate

         Kennung: org.gnome.Evince
             Ref: app/org.gnome.Evince/x86_64/stable
     Architektur: x86_64
           Zweig: stable
         Version: 41.3
         License: GPL-2.0+
        Ursprung: fedora
        Sammlung: 
    Installation: system
     Installiert: 77,7 MB
Laufzeitumgebung: org.fedoraproject.Platform/x86_64/f35
             Sdk: org.fedoraproject.Sdk/x86_64/f35

          Commit: c285f78d86b6363a771d634bfccd9935e12c256e562415d82abc4e3c984b6999
         Subject: Export org.gnome.Evince
            Date: 2021-12-08 17:32:48 +0000
          Alt-id: c756fd942984d03e28bc5f872355e71f791c972a8a1306a06340b611bee23ebf
```

Comment 1 rugk 2022-06-17 13:49:57 UTC
The old permissions were quite okay:
```sh
$ flatpak info --show-permissions org.gnome.Evince
[Context]
shared=ipc;
sockets=x11;wayland;pulseaudio;
filesystems=host;

[Session Bus Policy]
org.gnome.SessionManager=talk
org.gnome.evince=own
org.gtk.vfs.*=talk
org.gnome.SettingsDaemon.MediaKeys=talk
org.gtk.vfs=talk
org.freedesktop.FileManager1=talk
org.gnome.evince.Daemon=own

[Environment]
FLATPAK_PREFER_USER_NPM=1
```

Comment 2 Felipe Borges 2022-07-01 11:58:08 UTC
The filesystem=host permission got copied from upstream/Flathub https://github.com/flathub/org.gnome.Evince/blob/master/org.gnome.Evince.json#L13

It seems that revoking that permission doesn't cause any problem with the app's main functionality.

I suggest that you propose this change upstream, so we can reflect it here for Fedora Flatpaks too.

Comment 3 Felipe Borges 2022-07-01 11:58:29 UTC
See also https://github.com/flathub/org.gnome.Evince/issues/76

Comment 4 rugk 2022-07-07 21:15:04 UTC
Okay yeah great, did that in https://github.com/flathub/org.gnome.Evince/pull/92 now.

Comment 5 Ben Cotton 2023-04-25 18:24:48 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 6 Ludek Smid 2023-05-25 19:28:15 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.