Bug 1381607

Summary: avc: denied { transition } for pid=23586 comm="exe" path="/docker-entrypoint.sh"
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Studeník <pstudeni>
Component: dockerAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: amurdaca, lsm5
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-04 15:00:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pavel Studeník 2016-10-04 14:30:48 UTC
Description of problem:

I run existing container on docker and received avc messages in logs:

Running '/usr/bin/env LC_ALL=en_US.UTF-8 /sbin/ausearch -m AVC -m USER_AVC -m SELINUX_ERR -ts 10/03/2016 12:29:28 < /dev/null >/mnt/testarea/tmp.rhts-db-submit-result.VXyif4 2>&1'
----
time->Mon Oct  3 12:29:35 2016
type=SYSCALL msg=audit(1475512175.437:124): arch=c000003e syscall=59 success=yes exit=0 a0=c82060b600 a1=c82060b620 a2=c8206820c0 a3=0 items=0 ppid=18523 pid=23586 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=4294967295 comm="docker-entrypoi" exe="/bin/bash" subj=system_u:system_r:svirt_lxc_net_t:s0:c392,c999 key=(null)
type=AVC msg=audit(1475512175.437:124): avc:  denied  { transition } for  pid=23586 comm="exe" path="/docker-entrypoint.sh" dev="dm-4" ino=16937 scontext=system_u:system_r:unconfined_service_t:s0 tcontext=system_u:system_r:svirt_lxc_net_t:s0:c392,c999 tclass=process
----
time->Mon Oct  3 12:29:35 2016
type=AVC msg=audit(1475512175.515:125): avc:  denied  { sigchld } for  pid=18530 comm="docker-current" scontext=system_u:system_r:svirt_lxc_net_t:s0:c392,c999 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=process


Version-Release number of selected component (if applicable):
docker-selinux         x86_64 1.10.3-46.el7.14 

How reproducible:
always

Steps to Reproduce:
1. docker run -d -it -p 5432:5432 -e POSTGRES_PASSWORD=password postgres

Comment 1 Daniel Walsh 2016-10-04 15:00:06 UTC
You are running the wrong version of docker and selinux-policy
docker-1.10.3-55.el7
selinux-policy-3.13.1-102.el7