Bug 743772 - /tmp/mozilla-media-cache directory not multi-user safe
Summary: /tmp/mozilla-media-cache directory not multi-user safe
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 15
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-06 00:41 UTC by Iván Jiménez
Modified: 2018-04-11 09:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-13 00:29:27 UTC
Type: ---


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 612246 0 None None None Never

Description Iván Jiménez 2011-10-06 00:41:29 UTC
Description of problem:
html5 audio and video work only for the first user that plays audio or video in firefox.

It's upstream bug 612246, https://bugzilla.mozilla.org/show_bug.cgi?id=612246. From comment 5 there:

strace -fFeopen reveals whats going on here:

open("/tmp/mozilla-media-cache/media_cache", O_WRONLY|O_CREAT|O_EXCL|O_TRUNC, 0700) = -1 EACCES (Permission denied)

The reason for this failure is obvious: I have another FF instance running under a different user/group which created /tmp/mozilla-media-cache with permissions 0700. This precludes any new FF instance from opening the cache file.

There is a patch available there.

Version-Release number of selected component (if applicable):
firefox-7.0.1-1.fc15.x86_64 but f16beta has the same bug

How reproducible:
always

Steps to Reproduce:
1. create two user accounts
2. open firefox in one and play http://upload.wikimedia.org/wikipedia/commons/a/a9/Tromboon-sample.ogg
3. open the other account and play same url
  
Actual results:
no playback

Expected results:
play

Comment 1 Matěj Cepl 2011-10-13 00:29:27 UTC
We believe that it is more appropriate to let it be resolved upstream. We will continue to track the issue in the centralized upstream bug tracker, and will review any bug fixes that become available for consideration in future updates.

Thank you for helping to make free software better.


Note You need to log in before you can comment on or make changes to this bug.