Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1211029pxu; Mon, 23 Nov 2020 14:47:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjnml3Caw+htaCbhraeIf/hLSjBDWFRgID6aphv/ViK8KD5hJHKgLBZ+e4lemfg/Q97Emk X-Received: by 2002:a50:e60a:: with SMTP id y10mr1319100edm.157.1606171646371; Mon, 23 Nov 2020 14:47:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606171646; cv=none; d=google.com; s=arc-20160816; b=RlUoPhOSGfA9dM3f94pZJhmA9FKmVC3Ryqk3XKY2YJKZ4o5FEg9oOnpX7j3rUin11y jWB+wd9wz0AFINH1yBLDxjr3SePIrteb8OQmpOHc+WMh97XgIPuGIYHP9xeHTDfjl0LW o7rlG/bL37GH/AJbFm7QSi+ratJD5AxBpo43rk6yDOVqW34ktQmS0hAW1nZpq+Pz88Cp n3l1N0/6pJtGDri4whjla9/Vm0lsfhhXABq5ypQ/lvawhAG9QAsB5pIle8Rx6b3e8xIe fVYgNctwEdlhSFfHW41/nA4t/hQsf5BLq1JXqrvKf45+8DvVVTf3lq1UxYSWkwwnkk8+ By6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YFMysbUvILtvyZ1ruMl43SlEWruGMGrEuiKh8Nwg4BY=; b=fLphH8Ams1aiRz3AZMo3+nyHcon29Lgt0j0CafKp0HluDKqvyPyOLAlIKI9DIGtg0w 9oq4A+an2fJWxoCMhLtgSic1FbQ23hfdzLnW+xv3/iJV0HzRbuaQZnfDu3HrbmkWYadM rXDU2/kQwH7uvJHzmZ03JeaOSKcAKA+VmmleEWHX7dhwu3NXMxtWlltRLiG6ryp53O+e bV1Dyek4CE6PnorTe+CpQg7fObU1frM9CK4txMXDXKO7TNzcmCkDe74wFM2QJchulN6P TIKqicbjA0uRNnO2upggT7d7F8fNrlyl5W4qb4zQX1oHP4bORjcrfDkd9EIpM/HV9nEN Yogg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=g1pCD8WX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si7458286edc.249.2020.11.23.14.47.03; Mon, 23 Nov 2020 14:47:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=g1pCD8WX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732977AbgKWWnI (ORCPT + 99 others); Mon, 23 Nov 2020 17:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732953AbgKWWnH (ORCPT ); Mon, 23 Nov 2020 17:43:07 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62B34C061A4D for ; Mon, 23 Nov 2020 14:43:07 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id oq3so25650148ejb.7 for ; Mon, 23 Nov 2020 14:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YFMysbUvILtvyZ1ruMl43SlEWruGMGrEuiKh8Nwg4BY=; b=g1pCD8WXZAYH+/bCJyVT5mTCDV7Z/z7bOY1/rcdOo75KUvpGWVgoZ8g22QDGwY3QwC w1qVDaZn7AyQhP+pIfTHx2F3NhFnU5bHKGhHbJyKWql5hQRnjse5PujiVZBBhT+9vAxJ gdtD6tOogLcfv69pgn3LeS881NSRcP4v+bcInTa4kH77pJ8/mNnLbubYDvCNX+XNtvq5 KygZiv82QdVVzPokO5tVlQeM0WibzUq6oafCt/TLU2nk0sqC3kQ8XEx7Jujbj98EenZj F8TeKoK/aQ3awHizSHLPNkhD6Fmws1yRDshQ41gxQjyotiAeTVLZO2cYYWX9O37fWmcG igQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YFMysbUvILtvyZ1ruMl43SlEWruGMGrEuiKh8Nwg4BY=; b=AxxxKaK0OA3r667ZuHMngVZRyDR3hV4F7LaA3RptW7PGhd9tmEGaNj7RwkrkxNNHBj nhsRJR8fxg6iMlHAieJtfCAe3MpcaB4bHhSq4KtrOqrOHoUh6ET6D9jSUSzYF3b8g41g 9Kewt+m9/1xnJDf4rpC0xe/8Oc2HK+ADX85Mj2TNsUivW4/xDM+hOwX897xpTTmGY5O6 liOolVKfoa8BbZ2ex1Hti5m2ne+3kbTQ8TBoYLGY7ZttQ3NVeGCTeHnwonn8vu9lcs0w iJ3x6nURo6Qo+GQY8OEp1pq/3b9PhdaDyDP6Jb7W+MH+PM/DeACL0iJ9DyL9csma6hWv RS3g== X-Gm-Message-State: AOAM532yIULin5ezViy/bex9ItAz2FDQX1CNorq/0G+Yx3s3bcVZy8g2 h9b0Fywe3Zx26XqnQbCI3lKxyZHwf1viWyzYbLZX X-Received: by 2002:a17:906:7c9:: with SMTP id m9mr1632418ejc.178.1606171385064; Mon, 23 Nov 2020 14:43:05 -0800 (PST) MIME-Version: 1.0 References: <20201106155626.3395468-1-lokeshgidra@google.com> <20201106155626.3395468-4-lokeshgidra@google.com> In-Reply-To: From: Paul Moore Date: Mon, 23 Nov 2020 17:42:53 -0500 Message-ID: Subject: Re: [PATCH v12 3/4] selinux: teach SELinux about anonymous inodes To: Lokesh Gidra Cc: Andrea Arcangeli , Alexander Viro , James Morris , Stephen Smalley , Casey Schaufler , Eric Biggers , "Serge E. Hallyn" , Eric Paris , Daniel Colascione , Kees Cook , "Eric W. Biederman" , KP Singh , David Howells , Thomas Cedeno , Anders Roxell , Sami Tolvanen , Matthew Garrett , Aaron Goidel , Randy Dunlap , "Joel Fernandes (Google)" , YueHaibing , Christian Brauner , Alexei Starovoitov , Alexey Budankov , Adrian Reber , Aleksa Sarai , Linux FS Devel , linux-kernel , LSM List , SElinux list , Kalesh Singh , Calin Juravle , Suren Baghdasaryan , Jeffrey Vander Stoep , "Cc: Android Kernel" , "open list:MEMORY MANAGEMENT" , Andrew Morton , hch@infradead.org, Ondrej Mosnacek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 2:21 PM Lokesh Gidra wrote: > On Sun, Nov 22, 2020 at 3:14 PM Paul Moore wrote: > > On Wed, Nov 18, 2020 at 5:39 PM Lokesh Gidra wrote: > > > I have created a cuttlefish build and have tested with the attached > > > userfaultfd program: > > > > Thanks, that's a good place to start, a few comments: > > > > - While we support Android as a distribution, it isn't a platform that > > we common use for development and testing. At the moment, Fedora is > > probably your best choice for that. > > > I tried setting up a debian/ubuntu system for testing using the > instructions on the selinux-testsuite page, but the system kept > freezing after 'setenforce 1'. I'll try with fedora now. I would expect you to have much better luck with Fedora. > > - Your test program should be written in vanilla C for the > > selinux-testsuite. Looking at the userfaultfdSimple.cc code that > > should be a trivial conversion. > > > > - I think you have a good start on a test for the selinux-testsuite, > > please take a look at the test suite and submit a patch against that > > repo. Ondrej (CC'd) currently maintains the test suite and he may > > have some additional thoughts. > > > > * https://github.com/SELinuxProject/selinux-testsuite > > Thanks a lot for the inputs. I'll start working on this. Great, let us know if you hit any problems. I think we would all like to see this upstream :) -- paul moore www.paul-moore.com