From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0AEFC433E0 for ; Thu, 4 Jun 2020 18:52:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 85B8C207D5 for ; Thu, 4 Jun 2020 18:52:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Eqp6HF10" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728964AbgFDSwE (ORCPT ); Thu, 4 Jun 2020 14:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728939AbgFDSwD (ORCPT ); Thu, 4 Jun 2020 14:52:03 -0400 Received: from mail-oi1-x241.google.com (mail-oi1-x241.google.com [IPv6:2607:f8b0:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0962C08C5C0; Thu, 4 Jun 2020 11:52:03 -0700 (PDT) Received: by mail-oi1-x241.google.com with SMTP id a21so6007957oic.8; Thu, 04 Jun 2020 11:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7wZxQ2ZYTUXj6H4A/fAYu04YU+AVtihyuBKgDVRw7Dg=; b=Eqp6HF106HdaJQCMM+MYN1Iag55bBz6XgbmJ4Rm+khvXbF3EW/YGZnt5wSvXmnOXV+ PTG0zUud87zStyGqsE6yQ4+OYSUEwySxI/JnIzd/UJSsLBfcrV8Ozp8HdrRXMuOL7hm6 cKAPs5iOW6Ou+IALHz+4AjrXFUjZLxqF5a77thdclvBo5CEipnfaHAA7/iHa8hXVdSRB HVCgTkhFbk5Sy4N16Lt8aPmsOu53xRuTM++U+gtRPPMAkMn95kECiKFKPweWrA+gYcCC rD/QdTrM0c6/m1Pg7Nw9vxqQ9C4HqHTpGTDslhPq19VHW1Rn/QcmeGA+WUVoVuIbyLOc Xx2Q== 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=7wZxQ2ZYTUXj6H4A/fAYu04YU+AVtihyuBKgDVRw7Dg=; b=DaWyPJTckb7qy1hZHUy/VBS5X2nfUd5jzLsZ3RigWGNsXnVBbdc74iGr8PqwaMwnhy Wn6WPdUlm+e9y8Jr52hkGa2lyNvE4nUkVya18dRlBjbeVGavyqTuzvC+7UPsdYca0c1a Q5xhoda6Fh+YocHawJHAMlR9gm99Qe/XuYwdvkp7bdCC0MS5Ybrtzbi7cC1CajKkTQJp 5x2lXjL+aMZEuwEp/Idmj24AGKrCV/Mt3lZmQ0P8LQegrMTt6O/s45azJ1Iv3fCtH/oW E+puIyFbXm4gFaIIyMTmF60m2VN9Nr2z62tTwjzDXmFXNru7TQbcphEBBVFHKYATfFAu HpQg== X-Gm-Message-State: AOAM531S2jLRZ+hPJrpjf058UMiqTdP6AVJGGAujwZVqsVoBf2jnJ4VB RYaMQKONjGt3VSdOllFel27y78y4NiUzNPWE0EHMT9sY X-Google-Smtp-Source: ABdhPJxn3lSKV7CojeVjAyCPOlId/gXxk16z216+OIfdv+TZra7z0yINDq7DlAdQ8TogaDU/9ZC5XOvBb3vs4jP5I5M= X-Received: by 2002:aca:a948:: with SMTP id s69mr4146936oie.140.1591296723348; Thu, 04 Jun 2020 11:52:03 -0700 (PDT) MIME-Version: 1.0 References: <20200326200634.222009-1-dancol@google.com> <20200401213903.182112-1-dancol@google.com> In-Reply-To: From: Stephen Smalley Date: Thu, 4 Jun 2020 14:51:52 -0400 Message-ID: Subject: Re: [PATCH v5 0/3] SELinux support for anonymous inodes and UFFD To: James Morris Cc: Daniel Colascione , Tim Murray , SElinux list , LSM List , Linux FS Devel , linux-kernel , kvm@vger.kernel.org, Al Viro , Paul Moore , Nick Kralevich , Stephen Smalley , Lokesh Gidra , Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, Jun 3, 2020 at 11:59 PM James Morris wrote: > > On Wed, 1 Apr 2020, Daniel Colascione wrote: > > > Daniel Colascione (3): > > Add a new LSM-supporting anonymous inode interface > > Teach SELinux about anonymous inodes > > Wire UFFD up to SELinux > > > > fs/anon_inodes.c | 191 ++++++++++++++++++++++------ > > fs/userfaultfd.c | 30 ++++- > > include/linux/anon_inodes.h | 13 ++ > > include/linux/lsm_hooks.h | 11 ++ > > include/linux/security.h | 3 + > > security/security.c | 9 ++ > > security/selinux/hooks.c | 53 ++++++++ > > security/selinux/include/classmap.h | 2 + > > 8 files changed, 267 insertions(+), 45 deletions(-) > > Applied to > git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git secure_uffd_v5.9 > and next-testing. > > This will provide test coverage in linux-next, as we aim to get this > upstream for v5.9. > > I had to make some minor fixups, please review. LGTM and my userfaultfd test case worked.