RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1527052 - no assigned port to container_port_t label
Summary: no assigned port to container_port_t label
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-18 12:43 UTC by Lukas Pramuk
Modified: 2020-06-09 21:34 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-09 21:34:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukas Pramuk 2017-12-18 12:43:24 UTC
Description of problem:
There is no assigned port number to the container_port_t label.
Before container_port_t has at least 2375/tcp port assigned.
Is this a regression or intentional change and port assigment is now left to be done by sysadmin? documented?

Version-Release number of selected component (if applicable):
container-selinux-2.33-1.git86f33cd.el7.noarch

How reproducible:
deterministic

Steps to Reproduce:
1. Install container-selinux 
# yum install container-selinux
...
# semodule -l | grep -e container -e docker
container	2.33.0

2. List defined port labels 
# semanage port -l |grep -e container -e docker
<empty>

Actual results:
no port defined for container_port_t label

Expected results:
2375/tcp (and 2376/tcp?) defined for container_port_t label


Additional info:
# seinfo -xtcontainer_port_t
   container_port_t
      port_type
   Aliases
      docker_port_t

>>> defined_port_type is missing

Comment 2 Daniel Walsh 2017-12-18 15:34:04 UTC
Franticek add this 

semanage port -a -t container_port_t -P tcp 2375
TO docker post install

Comment 3 Lukas Zapletal 2018-01-08 10:35:27 UTC
Just FYI this port is already assigned to foreman_container_port_t on Satellite 6 installations, therefore your command will fail on these deployments. I recommend to grep port list before adding the port.

I wish semanage allowed "add-when-missing" or "ignore-when-present" options, grepping is hard as ports can be specified also as ranges.

Comment 4 Lukas Zapletal 2018-01-08 10:45:12 UTC
Here is how we do it in Satellite 6:

https://github.com/theforeman/foreman-selinux/blob/develop/foreman-selinux-enable#L23-L27

Comment 6 Tom Sweeney 2020-06-09 21:34:07 UTC
We have no plans to ship another version of Docker at this time. RHEL7 is in final support stages where only security fixes will get released.  Customers should move to use Podman which is available starting in RHEL 7.6.


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