Bug 1930447

Summary: SELinux is preventing /usr/libexec/platform-python3.6 from 'node_bind' accesses on the tcp_socket port None.
Product: Red Hat Enterprise Linux 8 Reporter: Shawn L <shawnlunny>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: lvrabec, mmalik, plautrba, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:ae11013e8e692887af4ecea34fb1a3a77fcdc0bc54fc299ef9460eae2bf6e3b5;
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-19 07:50:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Shawn L 2021-02-18 22:02:39 UTC
Description of problem:
SELinux is preventing /usr/libexec/platform-python3.6 from 'node_bind' accesses on the tcp_socket port None.

*****  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 platform-python3.6 should be allowed node_bind 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:
# ausearch -c 'rhsmcertd-worke' --raw | audit2allow -M my-rhsmcertdworke
# semodule -X 300 -i my-rhsmcertdworke.pp

Additional Information:
Source Context                system_u:system_r:rhsmcertd_t:s0
Target Context                system_u:object_r:node_t:s0
Target Objects                port None [ tcp_socket ]
Source                        rhsmcertd-worke
Source Path                   /usr/libexec/platform-python3.6
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-3.14.3-54.el8_3.2.noarch
Local Policy RPM              selinux-policy-targeted-3.14.3-54.el8_3.2.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.18.0-240.15.1.el8_3.x86_64 #1
                              SMP Wed Feb 3 03:12:15 EST 2021 x86_64 x86_64
Alert Count                   2
First Seen                    2021-02-18 12:31:30 EST
Last Seen                     2021-02-18 16:31:59 EST
Local ID                      c94e4bd1-6c6f-4cca-91f5-d9f198d57cc8

Raw Audit Messages
type=AVC msg=audit(1613683919.681:170): avc:  denied  { node_bind } for  pid=15971 comm="rhsmcertd-worke" saddr=::1 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:object_r:node_t:s0 tclass=tcp_socket permissive=0


Hash: rhsmcertd-worke,rhsmcertd_t,node_t,tcp_socket,node_bind

Version-Release number of selected component:
selinux-policy-targeted-3.14.3-54.el8_3.2.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.18.0-240.15.1.el8_3.x86_64
type:           libreport

Comment 1 Milos Malik 2021-02-19 07:50:20 UTC
This bug is a duplicate of BZ#1923985.

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