Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id v0IEENsA007331 for ; Wed, 18 Jan 2017 09:14:23 -0500 Subject: Re: New Blog on how SELinux blocked Docker container escape. To: =?UTF-8?B?6Z2i5ZKM5q+F?= References: <81c53826-f45f-8e01-e64b-8b16285d575d@redhat.com> <20170114082311.GN12376@tracyreed.org> <87pojqj86o.fsf@elektro.pacujo.net> Cc: Fedora SELinux Users , SELinux , Marko Rauhamaa From: Daniel J Walsh Message-ID: Date: Wed, 18 Jan 2017 09:14:22 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: On 01/18/2017 12:05 AM, 面和毅 wrote: > Dear Sir, > > I'm member of Japan-SOSS SIG(Secure OSS Special > Interest Group). > We love SELinux(12years user) and we are promoting SELinux in Japan. > > >From technical interesting(we are promoting Docker > with SELinux), we did PoC for CVE-2016-9962 on Fedora25. > > Then we found current SELinux(maybe policy) does not > mitigate that vulnerability. > > We could reproduce that vulnerability with > - add CAP_SYS_PTRACE to container > - modified runc because there’s not so much race window on runc. > then we think it's not so easy in usual situation. > Also we couldn't reproduce it on CentOS7(latest). > > We posted that PoC result on our community blog. > https://jsosug.github.io/post/omok-selinux-docker-20170118/ > > Also we wish to argue how can we protect this kind of > vulnerability by using SELinux. > > Kind Regards, > > OMO Attempt to cat /etc/shadow in your test to see the blockage. Here is a blog I wrote on the topic. http://rhelblog.redhat.com/2017/01/13/selinux-mitigates-container-vulnerability/