Bug 909526 - SELinux is preventing firewalld from 'search' accesses on the directory /home.
Summary: SELinux is preventing firewalld from 'search' accesses on the directory /home.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: firewalld
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c77a17dc556765ece780a4d17e3...
: 981659 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-09 08:19 UTC by Federico.Milano
Modified: 2014-03-09 04:42 UTC (History)
7 users (show)

Fixed In Version: firewalld-0.3.9.3-1.fc19
Clone Of:
Environment:
Last Closed: 2014-01-15 05:54:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Federico.Milano 2013-02-09 08:19:32 UTC
Description of problem:
SELinux is preventing firewalld from 'search' accesses on the directory /home.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that firewalld should be allowed search access on the home directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep firewalld /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:firewalld_t:s0
Target Context                system_u:object_r:home_root_t:s0
Target Objects                /home [ dir ]
Source                        firewalld
Source Path                   firewalld
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           filesystem-3.1-2.fc18.x86_64
Policy RPM                    selinux-policy-3.11.1-74.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.6-201.fc18.x86_64 #1 SMP Mon
                              Feb 4 15:54:08 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-02-09 09:12:49 CET
Last Seen                     2013-02-09 09:12:49 CET
Local ID                      160e7c58-b232-4bbd-897e-b8793657e42e

Raw Audit Messages
type=AVC msg=audit(1360397569.502:4): avc:  denied  { search } for  pid=657 comm="firewalld" name="/" dev="dm-2" ino=2 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:home_root_t:s0 tclass=dir


Hash: firewalld,firewalld_t,home_root_t,dir,search

audit2allow

#============= firewalld_t ==============
allow firewalld_t home_root_t:dir search;

audit2allow -R

#============= firewalld_t ==============
allow firewalld_t home_root_t:dir search;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.6-201.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-02-11 11:30:25 UTC
What were you doing when this happened?

Comment 2 Daniel Walsh 2013-07-10 23:03:37 UTC
*** Bug 981659 has been marked as a duplicate of this bug. ***

Comment 3 Thomas Woerner 2013-11-25 12:20:13 UTC
firewalld is not using /home at all. 

firewall-config and firewall-applet are using dconf to store user configuration options for the tools in the users home directory.

Have you been using firewall-config or firewall-applet?

Comment 4 Daniel Walsh 2013-11-25 15:05:54 UTC
Firewalld should be using -Es


#! /usr/bin/python -Es

       -E     Ignore environment variables like PYTHONPATH and PYTHONHOME that
              modify the behavior of the interpreter.

       -s     Don't add user site directory to sys.path.

This will stop the daemon from searching in /home or /root and getting unexpected errors.

Comment 5 Thomas Woerner 2013-11-25 17:37:07 UTC
We already had a script to fix the shebangs at installation time, but it was not used anymore.

Fixed in GIT: https://git.fedorahosted.org/cgit/firewalld.git/commit/?id=119d8d35b925caa3b0be9f298be2cf91623aab22

Comment 6 Fedora End Of Life 2013-12-21 15:38:44 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. 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 WONTFIX if it remains open with a Fedora 
'version' of '18'.

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 prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 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 to Fedora 18's end of life.

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 7 Fedora Update System 2014-01-13 16:47:00 UTC
firewalld-0.3.9-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/firewalld-0.3.9-1.fc20

Comment 8 Fedora Update System 2014-01-13 16:49:50 UTC
firewalld-0.3.9-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/firewalld-0.3.9-1.fc19

Comment 9 Fedora Update System 2014-01-14 08:39:19 UTC
Package firewalld-0.3.9-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing firewalld-0.3.9-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0738/firewalld-0.3.9-1.fc20
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2014-01-15 05:54:25 UTC
firewalld-0.3.9-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2014-03-09 04:42:50 UTC
firewalld-0.3.9.3-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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