Bug 1375743 - SELinux avc: denied { create } when attempting to print to a file in my home directory
Summary: SELinux avc: denied { create } when attempting to print to a file in my home ...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-13 21:26 UTC by Aram Agajanian
Modified: 2017-12-12 10:13 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:13:04 UTC
Type: Bug


Attachments (Terms of Use)

Description Aram Agajanian 2016-09-13 21:26:53 UTC
Description of problem:
When SELinux is enforcing, firefox cannot print to a file in my home directory.

The following error is logged to /var/log/audit/audit.log:

type=AVC msg=audit(1473801599.614:394): avc:  denied  { create } for  pid=22384 comm=57656220436F6E74656E74 name="test.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

Printing to a file in /tmp works.


Version-Release number of selected component (if applicable):
firefox-48.0.1-1.fc23.x86_64

How reproducible:
Happens every time

Steps to Reproduce:
1. Start Firefox.
2. Press the key combination Ctrl-P to print.
3. Select the printer named Print to File.
4. Use the File selector to select a file in the home directory.
5. Click on the Print button.

Actual results:
No file is created.  An SELinux AVC is logged.

Expected results:
A file is created in the selected location.

Comment 1 Robert Marcano 2016-10-06 13:30:04 UTC
Same problem on Fedora 24

firefox-49.0-2.fc24.x86_64
selinux-policy-3.13.1-191.17.fc24.noarch
selinux-policy-targeted-3.13.1-191.17.fc24.noarch

Comment 2 Fedora End Of Life 2016-11-25 09:35:08 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. 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 '23'.

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 23 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 3 Jason Tibbitts 2017-04-10 15:50:19 UTC
Still a thing on F25:

type=AVC msg=audit(1491838659.566:844): avc:  denied  { create } for  pid=5695 comm=57656220436F6E74656E74 name="math4364-fall-2017.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


firefox-52.0.2-2.fc25.x86_64
selinux-policy-3.13.1-225.11.fc25.noarch

Comment 4 Fedora End Of Life 2017-11-16 19:30:11 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. 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 '25'.

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 25 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 5 Fedora End Of Life 2017-12-12 10:13:04 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 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 please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

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


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