Closed Bug 1449864 Opened 8 years ago Closed 8 years ago

[snap package] removable-media plug needed to allow saving downloaded files to /media

Categories

(Release Engineering :: Release Automation, defect)

defect
Not set
normal

Tracking

(firefox59 wontfix, firefox60 fixed, firefox61 fixed)

RESOLVED FIXED
Tracking Status
firefox59 --- wontfix
firefox60 --- fixed
firefox61 --- fixed

People

(Reporter: olivier, Assigned: olivier)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.45 Chrome/66.0.3359.45 Safari/537.36 Steps to reproduce: As initially reported at https://forum.snapcraft.io/t/snap-firefox-unable-to-save-downloads-files/4734, firefox installed from the snap package doesn't allow saving downloaded files to /media. Steps to reproduce: snap install firefox /snap/bin/firefox browse to e.g. https://kernel.org, right-click on a [tarball] link and choose "Save Link As…" in the file dialog, try browsing to /media Actual results: An error dialog pops up: « Error opening directory '/media': Permission denied » Expected results: The user can browse to /media and subdirectories, and choose to save the file there.
Assignee: nobody → olivier
Blocks: snappy
Component: Untriaged → Release Automation
Product: Firefox → Release Engineering
QA Contact: catlee
Version: 59 Branch → unspecified
Comment on attachment 8963501 [details] Bug 1449864: [snap package] add the removable-media plug to allow saving downloaded files to /media. https://reviewboard.mozilla.org/r/232446/#review238718 This makes sense to me. Thank you for the investigation and the fix!
Attachment #8963501 - Flags: review+
Pushed by jlorenzo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d3bbcd354714 [snap package] add the removable-media plug to allow saving downloaded files to /media. r=jlorenzo
Comment on attachment 8963501 [details] Bug 1449864: [snap package] add the removable-media plug to allow saving downloaded files to /media. Approval Request Comment [Feature/Bug causing the regression]: None [User impact if declined]: Linux: Can't download on external devices. [Is this code covered by automated tests?]: No. [Has the fix been verified in Nightly?]: N/A. We don't build snaps on Nigthly. [Needs manual test from QE? If yes, steps to reproduce]: No. Tests were done by partner. [List of other uplifts needed for the feature/fix]: None [Is the change risky?]: No [Why is the change risky/not risky?]: This adds a new permission to the security model of Snap packages. [String changes made/needed]: None.
Attachment #8963501 - Flags: approval-mozilla-beta?
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Unfortunately /media is not just used by removable media, Nautilus File Manager automatically mounts additional drive partitions there, making any Windows partitions fully exposed. Fortunately the user can revoke access with: > sudo snap disconnect firefox:removable-media
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: FIXED → ---
Comment on attachment 8963501 [details] Bug 1449864: [snap package] add the removable-media plug to allow saving downloaded files to /media. Not ready for uplift.
Attachment #8963501 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
Comment 6 seems like an important security issue. What's your take on this, Olivier?
Flags: needinfo?(olivier)
It appears the removable-media interface does _not_ auto-connect by default, the user must do this manually. Sorry for the confusion.
That's right, the removable-media plug is not auto-connected, it's a manual operation. So that doesn't open any security hole by default.
Flags: needinfo?(olivier)
I can't set the approval-mozilla-beta flag back to "?". Could you set it for me, Ryan?
Flags: needinfo?(ryanvm)
Flags: needinfo?(ryanvm)
Attachment #8963501 - Flags: approval-mozilla-beta- → approval-mozilla-beta?
Comment on attachment 8963501 [details] Bug 1449864: [snap package] add the removable-media plug to allow saving downloaded files to /media. Sounds fine. approved for 60.0b14.
Attachment #8963501 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: