The issue is because firefox does a rename from the /tmp folder to the
encrypted home folder, right now fscrypt returns EPERM instead of EXDEV
that would be normal when the operation can not complete because of
crossing a mount point or in this case unencrypted to an encrypted
folder.

The upstream firefox bug is here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1521041

But one could argue that the kernel interface is broken and it should
return EXDEV as tools like mv also breaks, there are some patches in the
works but I don't know how far they are, maybe ubuntu could carry them
until they go upstream:

https://patchwork.kernel.org/patch/9943001/

** Bug watch added: Mozilla Bugzilla #1521041
   https://bugzilla.mozilla.org/show_bug.cgi?id=1521041

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1796661

Title:
  Firefox can't download files to an fscrypt protected, unlocked folder

Status in firefox package in Ubuntu:
  New

Bug description:
  My Downloads folder is encrypted by fscrypt. I can save and read files
  in there.  However, for Firefox - all downloads fail and it says only
  "download failed" and offers a button to retry which fails again.
  After a failed attempt, a file is created with a proper file name but
  no content (0 bytes).

  When I changed the download dir to a different non-fscrypted folder,
  everything works properly and files do get properly saved.

  I switched to Chromium and Chromium has no problems downloading files
  into any dirs, regardless encrypted or not.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: firefox 62.0.3+build1-0ubuntu1
  ProcVersionSignature: Ubuntu 4.18.0-8.9-generic 4.18.7
  Uname: Linux 4.18.0-8-generic x86_64
  AddonCompatCheckDisabled: False
  ApportVersion: 2.20.10-0ubuntu11
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  pkolaczk   3692 F.... pulseaudio
   /dev/snd/pcmC0D0c:   pkolaczk   3692 F...m pulseaudio
   /dev/snd/pcmC0D0p:   pkolaczk   3692 F...m pulseaudio
  BuildID: 20181002091723
  Channel: Unavailable
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Oct  8 12:10:57 2018
  DistributionChannelDescriptor:
   # This is a distribution channel descriptor
   # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-xenial-amd64-20160624-2
  Extensions: extensions.sqlite corrupt or missing
  ForcedLayersAccel: False
  IncompatibleExtensions: Unavailable (corrupt or non-existant 
compatibility.ini or extensions.sqlite)
  InstallationDate: Installed on 2017-04-12 (543 days ago)
  InstallationMedia: Ubuntu 16.04 "Xenial" - Build amd64 LIVE Binary 
20160624-10:47
  IpRoute:
   default via 192.168.0.1 dev enxd481d7358c11 proto dhcp metric 100 
   169.254.0.0/16 dev virbr0 scope link metric 1000 linkdown 
   192.168.0.0/24 dev enxd481d7358c11 proto kernel scope link src 192.168.0.2 
metric 100 
   192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 
linkdown
  Locales: extensions.sqlite corrupt or missing
  Plugins: Shockwave Flash - /usr/lib/adobe-flashplugin/libflashplayer.so 
(adobe-flashplugin)
  PrefSources: prefs.js
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=pl_PL.UTF-8
   SHELL=/bin/bash
  Profiles: Profile0 (Default) - LastVersion=62.0.3/20181002091723
  RelatedPackageVersions: adobe-flashplugin 1:20180911.1-0ubuntu0.18.04.1
  RunningIncompatibleAddons: False
  SourcePackage: firefox
  Themes: extensions.sqlite corrupt or missing
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 07/24/2018
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 1.11.0
  dmi.board.name: 06X96V
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A00
  dmi.chassis.type: 10
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvr1.11.0:bd07/24/2018:svnDellInc.:pnPrecision5520:pvr:rvnDellInc.:rn06X96V:rvrA00:cvnDellInc.:ct10:cvr:
  dmi.product.family: Precision
  dmi.product.name: Precision 5520
  dmi.product.sku: 07BF
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1796661/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to