Bug 1259766 - SELinux is preventing unbound from 'name_bind' accesses on the udp_socket port 61000.
SELinux is preventing unbound from 'name_bind' accesses on the udp_socket por...
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
23
x86_64 Unspecified
medium Severity medium
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
abrt_hash:12e98f771af3b7bcd3037c55005...
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-03 09:45 EDT by Stephen Gallagher
Modified: 2015-11-26 15:57 EST (History)
9 users (show)

See Also:
Fixed In Version: selinux-policy-3.13.1-155.fc23
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-26 15:57:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Stephen Gallagher 2015-09-03 09:45:38 EDT
Description of problem:
SELinux is preventing unbound from 'name_bind' accesses on the udp_socket port 61000.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If you want to allow nis to enabled
Then you must tell SELinux about this by enabling the 'nis_enabled' boolean.
You can read 'None' man page for more details.
Do
setsebool -P nis_enabled 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

If you believe that unbound should be allowed name_bind access on the port 61000 udp_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 unbound /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:named_t:s0
Target Context                system_u:object_r:ephemeral_port_t:s0
Target Objects                port 61000 [ udp_socket ]
Source                        unbound
Source Path                   unbound
Port                          61000
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-144.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.2.0-1.fc23.x86_64 #1 SMP Mon Aug
                              31 15:57:27 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-09-03 09:42:33 EDT
Last Seen                     2015-09-03 09:42:33 EDT
Local ID                      e49e5c7d-1b5f-4b33-80fc-a338412105e8

Raw Audit Messages
type=AVC msg=audit(1441287753.39:1414): avc:  denied  { name_bind } for  pid=1581 comm="unbound" src=61000 scontext=system_u:system_r:named_t:s0 tcontext=system_u:object_r:ephemeral_port_t:s0 tclass=udp_socket permissive=0


Hash: unbound,named_t,ephemeral_port_t,udp_socket,name_bind

Version-Release number of selected component:
selinux-policy-3.13.1-144.fc23.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.2.0-1.fc23.x86_64
type:           libreport
Comment 1 Miroslav Grepl 2015-09-11 06:21:57 EDT
Is it a custom configuration? Or is it going to happen by default?
Comment 2 Stephen Gallagher 2015-09-11 08:47:05 EDT
There shouldn't be anything custom in this configuration. I just installed and unbound and dnssec-trigger and enabled them.
Comment 3 Miroslav Grepl 2015-09-21 04:11:35 EDT
(In reply to Stephen Gallagher from comment #2)
> There shouldn't be anything custom in this configuration. I just installed
> and unbound and dnssec-trigger and enabled them.

Yes, we have another bug where it is looking for ephemeral ports. We should allow it.
Comment 5 Fedora Update System 2015-10-09 10:14:33 EDT
selinux-policy-3.13.1-150.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-f4305656a5
Comment 6 Fedora Update System 2015-10-11 04:25:39 EDT
selinux-policy-3.13.1-150.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update selinux-policy'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-f4305656a5
Comment 7 Fedora Update System 2015-10-12 20:04:56 EDT
selinux-policy-3.13.1-150.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 8 Stephen Gallagher 2015-11-10 14:55:13 EST
Reopening; I am still receiving this AVC on selinux-policy-3.13.1-152.fc23.noarch
Comment 9 Ed Marshall 2015-11-11 01:51:04 EST
+1 seeing the same thing here, on a fresh upgrade from F22 to F23.
Comment 11 Fedora Update System 2015-11-20 08:15:31 EST
selinux-policy-3.13.1-155.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-0d84d6c75f
Comment 12 Fedora Update System 2015-11-22 09:25:45 EST
selinux-policy-3.13.1-155.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update selinux-policy'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-0d84d6c75f
Comment 13 Fedora Update System 2015-11-26 15:56:55 EST
selinux-policy-3.13.1-155.fc23 has been pushed to the Fedora 23 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.