Bug 1476519 - SELinux is preventing rkt from 'name_bind' accesses on the tcp_socket port 18112.
SELinux is preventing rkt from 'name_bind' accesses on the tcp_socket port 18...
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-07-29 15:38 EDT by Nathan Moos
Modified: 2017-07-29 15:38 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nathan Moos 2017-07-29 15:38:51 EDT
Description of problem:
I started the systemd service `rkt-metadata` like the Fedora wiki page says to. Immediately afterward, this SELinux warning was emitted.
SELinux is preventing rkt from 'name_bind' accesses on the tcp_socket port 18112.

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

If you believe that rkt should be allowed name_bind access on the port 18112 tcp_socket by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'rkt' --raw | audit2allow -M my-rkt
# semodule -X 300 -i my-rkt.pp

Additional Information:
Source Context                system_u:system_r:rkt_t:s0
Target Context                system_u:object_r:rkt_port_t:s0
Target Objects                port 18112 [ tcp_socket ]
Source                        rkt
Source Path                   rkt
Port                          18112
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-260.3.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.11-300.fc26.x86_64 #1 SMP Mon
                              Jul 17 16:32:11 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-07-29 15:34:46 EDT
Last Seen                     2017-07-29 15:34:46 EDT
Local ID                      0274fc1f-09ab-4859-a065-c32341b9f21c

Raw Audit Messages
type=AVC msg=audit(1501356886.846:290): avc:  denied  { name_bind } for  pid=4843 comm="rkt" src=18112 scontext=system_u:system_r:rkt_t:s0 tcontext=system_u:object_r:rkt_port_t:s0 tclass=tcp_socket permissive=1

Hash: rkt,rkt_t,rkt_port_t,tcp_socket,name_bind

Version-Release number of selected component:

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.11-300.fc26.x86_64
type:           libreport

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