Bug 1151268 - SELinux is preventing mongod from 'accept' accesses on the tcp_socket port None.
Summary: SELinux is preventing mongod from 'accept' accesses on the tcp_socket port None.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:78c506d334d2b2a14908f4c77be...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-10 01:46 UTC by John Weekley
Modified: 2014-10-28 21:49 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-90.fc21
Clone Of:
Environment:
Last Closed: 2014-10-28 21:49:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Weekley 2014-10-10 01:46:35 UTC
Description of problem:
SELinux is preventing mongod from 'accept' accesses on the tcp_socket port None.

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

If you believe that mongod should be allowed accept access on the port None tcp_socket 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 mongod /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:mongod_t:s0
Target Context                system_u:system_r:mongod_t:s0
Target Objects                port None [ tcp_socket ]
Source                        mongod
Source Path                   mongod
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-85.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.16.3-302.fc21.x86_64 #1 SMP Fri
                              Sep 26 14:27:20 UTC 2014 x86_64 x86_64
Alert Count                   21
First Seen                    2014-10-03 16:41:20 EDT
Last Seen                     2014-10-09 21:38:44 EDT
Local ID                      242a59ac-df03-4e8a-a8d9-0dce62e97530

Raw Audit Messages
type=AVC msg=audit(1412905124.9:1130): avc:  denied  { accept } for  pid=969 comm="mongod" laddr=127.0.0.1 lport=27017 scontext=system_u:system_r:mongod_t:s0 tcontext=system_u:system_r:mongod_t:s0 tclass=tcp_socket permissive=1


Hash: mongod,mongod_t,mongod_t,tcp_socket,accept

Version-Release number of selected component:
selinux-policy-3.13.1-85.fc21.noarch

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.3-302.fc21.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-10-10 10:29:22 UTC
commit b9f12d3c9b3ebd467db8cba68fa6d52fd4eb02dc
Author: Miroslav Grepl <mgrepl>
Date:   Fri Oct 10 12:28:16 2014 +0200

    Allow mondogdb to  'accept' accesses on the tcp_socket port.

Comment 2 Fedora Update System 2014-10-14 11:18:55 UTC
selinux-policy-3.13.1-86.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-86.fc21

Comment 3 Fedora Update System 2014-10-16 02:00:44 UTC
Package selinux-policy-3.13.1-86.fc21:
* should fix your issue,
* was pushed to the Fedora 21 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.13.1-86.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-12863/selinux-policy-3.13.1-86.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-10-22 07:50:17 UTC
selinux-policy-3.13.1-88.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-88.fc21

Comment 5 Fedora Update System 2014-10-28 21:49:56 UTC
selinux-policy-3.13.1-90.fc21 has been pushed to the Fedora 21 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.