Bug 1381607 - avc: denied { transition } for pid=23586 comm="exe" path="/docker-entrypoint.sh"
Summary: avc: denied { transition } for pid=23586 comm="exe" path="/docker-entrypoi...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.3
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: 2016-10-04 14:30 UTC by Pavel Studeník
Modified: 2019-03-06 01:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-04 15:00:06 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


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