Bug 1710225 - SELinux is preventing unbound from 'name_bind' accesses on the udp_socket port 61000.
Summary: SELinux is preventing unbound from 'name_bind' accesses on the udp_socket por...
Keywords:
Status: CLOSED DUPLICATE of bug 1667742
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0a6733b242fb09a5645f2ae15b7...
: 1770607 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-15 06:59 UTC by David Jaša
Modified: 2019-11-11 07:27 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-05-15 07:08:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Jaša 2019-05-15 06:59:25 UTC
Description of problem:
The AVCs started to appear right after boot.
Reporter note: this bug seems like a regression, I remember such unbound AVCs from the past that should be long resolved...


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.

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:
# ausearch -c 'unbound' --raw | audit2allow -M my-unbound
# semodule -X 300 -i my-unbound.pp

Additional Information:
Source Context                system_u:system_r:named_t:s0
Target Context                system_u:object_r: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.14.3-35.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.0.14-300.fc30.x86_64 #1 SMP Thu
                              May 9 10:43:38 UTC 2019 x86_64 x86_64
Alert Count                   82
First Seen                    2019-05-15 08:55:49 CEST
Last Seen                     2019-05-15 08:56:42 CEST
Local ID                      bb6bc0cd-7d03-43ed-8046-52e831909aa8

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


Hash: unbound,named_t,port_t,udp_socket,name_bind

Version-Release number of selected component:
selinux-policy-3.14.3-35.fc30.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.14-300.fc30.x86_64
type:           libreport

Potential duplicate: bug 1667742

Comment 1 Zdenek Pytela 2019-05-15 07:08:00 UTC

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

Comment 2 Zdenek Pytela 2019-11-11 07:27:58 UTC
*** Bug 1770607 has been marked as a duplicate of this bug. ***


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