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 1346185 - Installing Extras 7.2 on RHEL 7.3 nightly causes wrong SELinux domain for the docker daemon and containers
Summary: Installing Extras 7.2 on RHEL 7.3 nightly causes wrong SELinux domain for the...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-14 08:30 UTC by Jan Pazdziora (Red Hat)
Modified: 2019-03-06 01:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 09:08:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2634 0 normal SHIPPED_LIVE Moderate: docker security and bug fix update 2016-11-03 20:51:48 UTC

Description Jan Pazdziora (Red Hat) 2016-06-14 08:30:34 UTC
Description of problem:

Attempt to install docker on RHEL 7.3 nightly (RHEL-7.3-20160613.n.0 Server x86_64), either from released rhel-7-server-extras-rpms or from nightly EXTRAS-7.2-RHEL-7-20160603.1 leads to error during yum transaction, wrong type on /usr/bin/docker*, and docker daemon running as initrc_t.

Version-Release number of selected component (if applicable):

RHEL-7.3-20160613.n.0
docker-1.9.1-40.el7.x86_64 or docker-1.10.3-31.el7.x86_64

How reproducible:

Deterministic.

Steps to Reproduce:
1. yum install -y docker
2. ls -laZ /usr/bin/docker*
3. systemctl start docker 
4. docker run --privileged -ti rhel7 bash
5. In another terminal ps axuwwfZ

Actual results:

  Installing : policycoreutils-python-2.5-2.1.el7.x86_64          16/21 
  Installing : docker-selinux-1.10.3-31.el7.x86_64                17/21 
Re-declaration of boolean virt_sandbox_use_fusefs
Failed to create node
Bad boolean declaration at line 147 of /etc/selinux/targeted/tmp/modules/100/virt/cil
/usr/sbin/semodule:  Failed!
libsemanage.semanage_direct_install_info: Overriding docker module at lower priority 100 with module at priority 400.
  Installing : docker-forward-journald-1.10.3-31.el7.x86_64       18/21 
  Installing : docker-v1.10-migrator-1.10.3-31.el7.x86_64         19/21 

-rwxr-xr-x. root root system_u:object_r:docker_exec_t:s0 /usr/bin/docker
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/docker-current
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/docker-storage-setup

system_u:system_r:initrc_t:s0   root     10768  0.0  0.0 115244  1436 ?        Ss   04:22   0:00 /bin/sh -c /usr/bin/docker-current daemon            --authorization-plugin=rhel-push-plugin            --exec-opt native.cgroupdriver=systemd            $OPTIONS            $DOCKER_STORAGE_OPTIONS            $DOCKER_NETWORK_OPTIONS            $ADD_REGISTRY            $BLOCK_REGISTRY            $INSECURE_REGISTRY            2>&1 | /usr/bin/forward-journald -tag docker
system_u:system_r:initrc_t:s0   root     10770  9.5  2.3 506052 43940 ?        Sl   04:22   0:06  \_ /usr/bin/docker-current daemon --authorization-plugin=rhel-push-plugin --exec-opt native.cgroupdriver=systemd --selinux-enabled --log-driver=journald --add-registry registry.access.redhat.com
system_u:system_r:initrc_t:s0   root     11004  0.4  0.0  11776  1752 pts/2    Ss+  04:23   0:00  |   \_ bash
system_u:system_r:initrc_t:s0   root     10771  0.0  0.1 101728  2192 ?        Sl   04:22   0:00  \_ /usr/bin/forward-journald -tag docker

Expected results:

No error during rpm installation.

-rwxr-xr-x. root root system_u:object_r:docker_exec_t:s0 /usr/bin/docker
-rwxr-xr-x. root root system_u:object_r:docker_exec_t:s0 /usr/bin/docker-current
-rwxr-xr-x. root root system_u:object_r:docker_exec_t:s0 /usr/bin/docker-storage-setup

system_u:system_r:initrc_t:s0   root     29904  0.0  0.0 115244  1432 ?        Ss   04:17   0:00 /bin/sh -c /usr/bin/docker-current daemon            --authorization-plugin=rhel-push-plugin            --exec-opt native.cgroupdriver=systemd            $OPTIONS            $DOCKER_STORAGE_OPTIONS            $DOCKER_NETWORK_OPTIONS            $ADD_REGISTRY            $BLOCK_REGISTRY            $INSECURE_REGISTRY            2>&1 | /usr/bin/forward-journald -tag docker
system_u:system_r:docker_t:s0   root     29906  0.0  1.6 493484 30896 ?        Sl   04:17   0:00  \_ /usr/bin/docker-current daemon --authorization-plugin=rhel-push-plugin --exec-opt native.cgroupdriver=systemd --selinux-enabled --log-driver=journald --add-registry registry.access.redhat.com
system_u:system_r:spc_t:s0      root     30077  4.0  0.0  11776  1836 pts/2    Ss+  04:30   0:00  |   \_ bash
system_u:system_r:initrc_t:s0   root     29907  0.0  0.2 101728  4152 ?        Sl   04:17   0:00  \_ /usr/bin/forward-journald -tag docker

Additional info:

Comment 2 Daniel Walsh 2016-06-14 13:18:54 UTC
We are going to need an updated docker-selinux to install on the 7.3 nightly's, Since our policy has forward ported fixes that will be going into 7.3 selinux-policy package.

Comment 9 Daniel Walsh 2016-08-19 22:26:18 UTC
You need to have the latest selinux-policy in your updated package and an updated docker-selinux which I believe are available in the 7.3 streams now.

Comment 18 errata-xmlrpc 2016-11-04 09:08:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2634.html


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