All of lore.kernel.org
 help / color / mirror / Atom feed
* Strange AVC with latest rawhide kernel.
@ 2016-02-25 18:02 Daniel J Walsh
  2016-02-25 18:06 ` Stephen Smalley
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Daniel J Walsh @ 2016-02-25 18:02 UTC (permalink / raw)
  To: Stephen Smalley, Eric Paris, pmoore, mgrepl; +Cc: selinux

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?

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2016-02-29 17:27 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25 18:02 Strange AVC with latest rawhide kernel Daniel J Walsh
2016-02-25 18:06 ` Stephen Smalley
2016-02-25 18:18 ` Stephen Smalley
2016-02-25 18:59   ` Daniel J Walsh
2016-02-25 19:12     ` Stephen Smalley
2016-02-25 19:36       ` Daniel J Walsh
2016-02-25 19:37       ` Eric Paris
2016-02-25 19:47         ` Stephen Smalley
2016-02-25 20:28           ` Daniel J Walsh
2016-02-25 20:54             ` Stephen Smalley
2016-02-26 12:54               ` Daniel J Walsh
2016-02-26 15:46                 ` Paul Moore
2016-02-26 15:49                   ` Stephen Smalley
2016-02-26 16:33                     ` Daniel J Walsh
2016-02-26 19:50                       ` James Carter
2016-02-26 20:30                         ` Daniel J Walsh
2016-02-29 16:27                           ` James Carter
2016-02-29 17:27                             ` Daniel J Walsh
2016-02-26 17:13                     ` Paul Moore
2016-02-26 19:41                       ` Daniel J Walsh
2016-02-26 16:31                   ` Daniel J Walsh
2016-02-26 17:15                     ` Paul Moore
2016-02-26 19:42                       ` Daniel J Walsh
2016-02-25 20:36           ` Daniel J Walsh
2016-02-29 10:10             ` Miroslav Grepl
2016-02-25 19:25   ` Daniel J Walsh
2016-02-25 19:05 ` Paul Moore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.