Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1100009 - /run is broken with SELinux
/run is broken with SELinux
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker (Show other bugs)
7.1
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Lokesh Mandvekar
Virtualization Bugs
: Extras
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-21 15:20 EDT by Colin Walters
Modified: 2015-03-04 22:18 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-04 22:18:50 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0623 normal SHIPPED_LIVE Low: docker security, bug fix, and enhancement update 2015-03-05 10:28:35 EST

  None (edit)
Description Colin Walters 2014-05-21 15:20:58 EDT
The label of /run in containers is docker_tmpfs_t, which containers can't access.
Comment 1 Daniel Walsh 2014-05-21 15:49:13 EDT
https://github.com/dotcloud/docker/pull/5974

Fixes this issue.
Comment 6 Luwen Su 2015-01-28 03:47:28 EST
with docker-1.4.1-27.el7.x86_64

FROM rhel7
RUN mkdir /run/demo ; touch /run/demo/access


#docker build --no-cache -t access .
#docker run -it --rm access /bin/bash
bash-4.2# ls /run/
demo  secrets
bash-4.2# ls -aZ /run
drwxrwxrwt. root root system_u:object_r:svirt_sandbox_file_t:s0:c210,c718 .
dr-xr-xr-x. root root system_u:object_r:svirt_sandbox_file_t:s0:c210,c718 ..
drwxr-xr-x. root root system_u:object_r:svirt_sandbox_file_t:s0:c210,c718 demo
drwxrwxrwt. root root system_u:object_r:svirt_sandbox_file_t:s0:c210,c718 secrets
bash-4.2# ls -aZ /run/demo/
drwxr-xr-x. root root system_u:object_r:svirt_sandbox_file_t:s0:c210,c718 .
drwxrwxrwt. root root system_u:object_r:svirt_sandbox_file_t:s0:c210,c718 ..
-rw-r--r--. root root system_u:object_r:svirt_sandbox_file_t:s0:c210,c718 access

Verfied
Comment 8 errata-xmlrpc 2015-03-04 22:18:50 EST
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-2015-0623.html

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