Bug 787173 - SELinux is preventing /usr/bin/mongod from 'name_bind' accesses on the None .
Summary: SELinux is preventing /usr/bin/mongod from 'name_bind' accesses on the None .
Keywords:
Status: CLOSED DUPLICATE of bug 752331
Alias: None
Product: Fedora
Classification: Fedora
Component: mongodb
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nathaniel McCallum
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d496452438bd4841cfe0355d3b9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-03 11:43 UTC by Pau Aliagas
Modified: 2012-02-03 21:35 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-02-03 21:35:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pau Aliagas 2012-02-03 11:43:30 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing /usr/bin/mongod from 'name_bind' accesses on the None .
time:           dv 03 feb 2012 12:43:13 CET

description:
:SELinux is preventing /usr/bin/mongod from 'name_bind' accesses on the None .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that mongod should be allowed name_bind access on the  <Unknown> 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:object_r:unreserved_port_t:s0
:Target Objects                 [ None ]
:Source                        mongod
:Source Path                   /usr/bin/mongod
:Port                          28017
:Host                          (removed)
:Source RPM Packages           mongodb-server-2.0.2-5.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.2-1.fc16.x86_64 #1 SMP
:                              Thu Jan 26 03:21:58 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    dt 31 gen 2012 16:00:24 CET
:Last Seen                     dv 03 feb 2012 12:28:51 CET
:Local ID                      31ab0bb0-2860-4d82-af3d-2036aa0be0eb
:
:Raw Audit Messages
:type=AVC msg=audit(1328268531.558:1259): avc:  denied  { name_bind } for  pid=31151 comm="mongod" src=28017 scontext=system_u:system_r:mongod_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=tcp_socketnode=(removed) type=SYSCALL msg=audit(1328268531.558:1259): arch=c000003e syscall=49 success=yes exit=0 a0=7 a1=7f70ac0011f8 a2=10 a3=7f70b7ffea38 items=0 ppid=1 pid=31151 auid=4294967295 uid=992 gid=989 euid=992 suid=992 fsuid=992 egid=989 sgid=989 fsgid=989 tty=(none) ses=4294967295 comm="mongod" exe="/usr/bin/mongod" subj=system_u:system_r:mongod_t:s0 key=(null)
:
:
:Hash: mongod,mongod_t,unreserved_port_t,None,name_bind
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-03 21:26:41 UTC
Is this a default port for mongodb?

Comment 2 Nathaniel McCallum 2012-02-03 21:35:16 UTC
Yes, it is a default port for the HTTP interface which we are now disabling for security reasons.

*** This bug has been marked as a duplicate of bug 752331 ***


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