From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1456428339.3702.53.camel@redhat.com> Subject: Re: Strange AVC with latest rawhide kernel. From: Daniel J Walsh To: Stephen Smalley , Eric Paris , pmoore@redhat.com, mgrepl@redhat.com Cc: selinux@tycho.nsa.gov Date: Thu, 25 Feb 2016 14:25:39 -0500 In-Reply-To: <56CF4574.3030709@tycho.nsa.gov> References: <1456423369.3702.42.camel@redhat.com> <56CF4574.3030709@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: On Thu, 2016-02-25 at 13:18 -0500, Stephen Smalley wrote: > On 02/25/2016 01:02 PM, Daniel J Walsh wrote: > > > > audit2allow -wla > > type=AVC msg=audit(1456422969.279:1434): avc:  denied  { entrypoint > > } > > for  pid=23847 comm="exe" path="/usr/bin/bash" dev="dm-2" > > ino=25165968 > > scontext=system_u:system_r:svirt_lxc_net_t:s0:c337,c895 > > tcontext=system_u:object_r:svirt_sandbox_file_t:s0:c337,c895 > > tclass=file permissive=0 > > Was caused by: > > Unknown - would be allowed by active policy > > Possible mismatch between this policy and the one under > > which the audit message was generated. > > > > Possible mismatch between current in-memory boolean > > settings vs. permanent ones. > > > > When trying to run a docker container on Rawhide, I am seeing this > > AVC. > > The policy as audit2allow -w shows allows svirt_sandbox_file_t as > > an > > entrypoint for svirt_lxc_net_t. > > > > # sesearch -A -s svirt_lxc_net_t -t svirt_sandbox_file_t -c file -p > > entrypoint > > Found 1 semantic av rules: > >     allow svirt_sandbox_domain file_type : file entrypoint ; > > > > But when I run try to start the container, docker blocks the > > access.  I > > don't see any constraints that would block this, and don't think > > NO_NEW_PRIV is enabled any way, and I don't think it would be > > involved > > here. > > > > Any idea why SELinux is blocking the access? > Also, what does compute_av report for that (scontext, tcontext, > tclass)  > triple? > Could this be a compiler issue?  I added the command directly and compute_av still says it is not allowed. while sesearch says it is in there.