Bug 889343 - SELinux is preventing /usr/bin/python2.7 from 'search' accesses on the directory /var/lib/sss.
Summary: SELinux is preventing /usr/bin/python2.7 from 'search' accesses on the direct...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9b3a707006c57bd0ce3460c7987...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-20 21:05 UTC by Donald Edward Winslow
Modified: 2013-01-23 01:56 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-23 01:56:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Donald Edward Winslow 2012-12-20 21:05:56 UTC
Description of problem:
Open the firewalld gui from the menu in kde desktop. Click boxes to open ports for http, smtp, and vnc-server. The setroubleshoot alert comes up. Always reproducible.
SELinux is preventing /usr/bin/python2.7 from 'search' accesses on the directory /var/lib/sss.

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

If you believe that python2.7 should be allowed search access on the sss 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:sssd_var_lib_t:s0
Target Objects                /var/lib/sss [ dir ]
Source                        firewalld
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.3-13.fc18.x86_64
Target RPM Packages           sssd-1.9.3-1.fc18.x86_64
Policy RPM                    selinux-policy-3.11.1-66.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.11-3.fc18.x86_64 #1 SMP Mon
                              Dec 17 21:35:39 UTC 2012 x86_64 x86_64
Alert Count                   2
First Seen                    2012-12-20 14:40:51 CST
Last Seen                     2012-12-20 14:40:51 CST
Local ID                      854c4bd5-62cf-4e68-8cbe-8f994a56c061

Raw Audit Messages
type=AVC msg=audit(1356036051.558:331): avc:  denied  { search } for  pid=703 comm="firewalld" name="sss" dev="dm-1" ino=21497766 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:sssd_var_lib_t:s0 tclass=dir


type=SYSCALL msg=audit(1356036051.558:331): arch=x86_64 syscall=connect success=no exit=EACCES a0=8 a1=7ffff1228890 a2=6e a3=7fceba26d1e0 items=0 ppid=1 pid=703 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=firewalld exe=/usr/bin/python2.7 subj=system_u:system_r:firewalld_t:s0 key=(null)

Hash: firewalld,firewalld_t,sssd_var_lib_t,dir,search

audit2allow

#============= firewalld_t ==============
#!!!! This avc is allowed in the current policy

allow firewalld_t sssd_var_lib_t:dir search;

audit2allow -R

#============= firewalld_t ==============
#!!!! This avc is allowed in the current policy

allow firewalld_t sssd_var_lib_t:dir search;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.11-3.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2012-12-21 17:57:19 UTC
Looks like a yum update has fixed this issue.


#============= firewalld_t ==============
#!!!! This avc is allowed in the current policy

allow firewalld_t sssd_var_lib_t:dir search;

audit2allow -R

#============= firewalld_t ==============
#!!!! This avc is allowed in the current policy

allow firewalld_t sssd_var_lib_t:dir search;

Comment 3 Miroslav Grepl 2013-01-02 13:08:51 UTC
I added a policy fix to selinux-policy-3.11.1-69.fc18

Comment 4 Fedora Update System 2013-01-02 17:38:00 UTC
selinux-policy-3.11.1-69.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-69.fc18

Comment 5 Fedora Update System 2013-01-03 23:51:01 UTC
Package selinux-policy-3.11.1-69.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-69.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-0147/selinux-policy-3.11.1-69.fc18
then log in and leave karma (feedback).

Comment 6 Donald Edward Winslow 2013-01-04 05:41:15 UTC
I haven't been seeing this AVC lately, but I think that's because I changed my policy to allow the access. I installed the update, and everything seems fine.

Donald

Comment 7 Jeff Raber 2013-01-08 20:30:08 UTC
1. start firewall-config from terminal
2. enter root password
3. 'work' zone is automatically selected.
4. click the box next to 'vnc-server'
5. AVC.

Only happens when editing the 'runtime configuration'


Package: (null)
OS Release: Fedora release 18 (Spherical Cow)

Comment 8 Daniel Walsh 2013-01-08 22:10:46 UTC
Jeff are you seeing this with policy -69?

Comment 9 Jeff Raber 2013-01-08 22:57:42 UTC
No, that AVC was with -66.  I updated to -69 from updates-testing and the problem is solved.  I have left positive karma for that update in bodhi.

Comment 7 came from the 'Report Bug' feature in the SELinux Troubleshooter app, but it seems oddly light on details (because it was a dupe?)

Comment 10 Fedora Update System 2013-01-15 22:20:49 UTC
selinux-policy-3.11.1-71.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-71.fc18

Comment 11 Fedora Update System 2013-01-23 01:56:21 UTC
selinux-policy-3.11.1-71.fc18 has been pushed to the Fedora 18 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.