Bug 1388312

Summary: print to file in Firefox fails to save the file because of AVC: scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0
Product: [Fedora] Fedora Reporter: Jan Hutař <jhutar>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: danysan95, dominick.grift, dwalsh, gecko-bugs-nobody, germano.massullo, jhorak, jhutar, juliux.pigface, lvrabec, mgrepl, pjasicek, plautrba, pmoore, scampa.giovanni
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: 2017-07-26 05:40:44 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:

Description Jan Hutař 2016-10-25 05:50:01 UTC
Description of problem:
Print to file in Firefox fails to save the file because of AVC: scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0


Version-Release number of selected component (if applicable):
firefox-49.0-2.fc24.x86_64
cups-2.1.4-2.fc24.x86_64
selinux-policy-targeted-3.13.1-191.19.fc24.noarch


How reproducible:
always


Steps to Reproduce:
1. Print some webpage into a file


Actual results:
File is not saved, AVC error appears


Expected results:
File should be saved


Additional info:
Oct 25 07:41:50 <fqdn> audit[3603]: AVC avc:  denied  { create } for  pid=3603 comm=57656220436F6E74656E74 name="aaa.pdf" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0
Oct 25 07:41:50 <fqdn> audit[3603]: AVC avc:  denied  { create } for  pid=3603 comm=57656220436F6E74656E74 name="recently-used.xbel.SQLJPY" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0
Oct 25 07:41:50 <fqdn> audit[3603]: AVC avc:  denied  { setattr } for  pid=3603 comm=57656220436F6E74656E74 name="recently-used.xbel" dev="dm-3" ino=16777753 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0

Comment 1 Jan Hutař 2016-10-25 05:56:53 UTC
I'm running firefox in two profiles setup. This one was started with:

  $ firefox -P work

when no other FF was running before. Not sure if it makes any difference.

Comment 2 Lukas Vrabec 2016-11-01 14:44:18 UTC
Could you start firefox and attach output of: 

# ps -efZ | grep firefox

Thanks.

Comment 3 Giulio 'juliuxpigface' 2017-04-24 19:50:55 UTC
*** Bug 1372929 has been marked as a duplicate of this bug. ***

Comment 4 Giulio 'juliuxpigface' 2017-04-24 19:50:58 UTC
*** Bug 1392847 has been marked as a duplicate of this bug. ***

Comment 5 Giulio 'juliuxpigface' 2017-04-24 19:53:58 UTC
On Fedora 25 I hit this too, but the issue has been solved by the update "firefox-53.0-2".

Jan, may you please test that build against Fedora 24, please?

Comment 6 Jan Hutař 2017-04-25 21:48:34 UTC
(In reply to Giulio 'juliuxpigface' from comment #5)
> On Fedora 25 I hit this too, but the issue has been solved by the update
> "firefox-53.0-2".
> 
> Jan, may you please test that build against Fedora 24, please?

I'm on F25 now. If it is important, let me know please and I can create F24 VM and test there.

Comment 7 Fedora End Of Life 2017-07-25 23:36:14 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. 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 Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 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, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Jan Hutař 2017-07-26 05:40:44 UTC
Now with following versions it works:

selinux-policy-targeted-3.13.1-259.fc26.noarch
libselinux-2.6-6.fc26.x86_64
firefox-54.0-2.fc26.x86_64