Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp9149pxb; Wed, 4 Nov 2020 12:56:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQXB1t+mkAUFzKifhHgeTYYA/3u3jbrrC6+qK7w9f1xGPCc2bE802dPt2cKdUEEUg+H10l X-Received: by 2002:a05:6402:156:: with SMTP id s22mr29138252edu.178.1604523396048; Wed, 04 Nov 2020 12:56:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604523396; cv=none; d=google.com; s=arc-20160816; b=OcWucoXHoQWnY2pU9XxvumitCjd8QWkAm+oTgZcak8w/aT13NOyTPGFU0YjeSXQYp+ GB12KCiVpLJXkNkWtqdIx0os/VVtvCrAeIHyti0Stwu9MJrBM5N3R/2Pf+rD7+xgpuvQ pyMs4128Vq2Asb5ZeJrimFYROdQzkqRmO6U+Vwutx9dek+M8rZ/OiY66yqMK8+TcZV/b UdQsUMS34IxYsag/jIzyVj/1HWjGQcMrFwmmPlETVdlXle4vrex8KZ7yXLTdpWKKahx9 AsSwM/c9qrduRcBi/yNEHnO1Hr45Fz5kDhXSvbO5txv7b7ViFXFiY90MTaPSEodyYhMx bW2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dKCuyGWfJDO8gl/VldpnEQSu8rdRxbkWo0Eka7YMoOg=; b=LEV9fo4W7uCGjfYynDlw9tBGMIbyjgDLXDUtCGIBSUKqi8YryIirZLVcLlDYW8TTw7 Bq//JE2y1nOyDM++ASjtgyYMH9+yk5oCqQPyQbdBpr3e1hUYUYt2sTnPt6B+hKYDPU0i AkhSm/PYwO5ijfQD32jDPQgg4asWECz5jdie6utDC45xzDXQIgYzL/mue3/jQD4Lstoi UmGJROhdIaaEzhfcbKQRRIF+J+KOrtoUsSCc9b7C0JgXu9WxCjkZisC343cy4Z2gjOw1 bVTid4DazVBq4irIUthwyJp/kK0s1AQwC69+ndasVcSUd4wkvYPvTPFn6P2eig8brWd4 dzSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="sMTdq2/J"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs11si2059609edb.24.2020.11.04.12.56.08; Wed, 04 Nov 2020 12:56:36 -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=@kernel.org header.s=default header.b="sMTdq2/J"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731503AbgKDUHR (ORCPT + 99 others); Wed, 4 Nov 2020 15:07:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:50374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbgKDUHR (ORCPT ); Wed, 4 Nov 2020 15:07:17 -0500 Received: from gmail.com (unknown [104.132.1.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2EE7220759; Wed, 4 Nov 2020 20:07:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604520435; bh=/KxEHYgp71/ldR6Q6v/198vdd/J27KB6R/yLwRxvdHM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sMTdq2/JvXaoj6ioI59IfzGg+6h/K/RuZTjVhSyPvLS/M8m+Rxlu2JLIWkn788SR3 s7EG8t9sMlRSBCVayPVdoWbJjvnm8ejMmPoj52tmJsfGYtb1SY/Jda4EcOCXuYN01k NhpVRHTGMoQrcZUeyOA5TumQe8awYGmol7L66rgg= Date: Wed, 4 Nov 2020 12:07:01 -0800 From: Eric Biggers To: Lokesh Gidra Cc: Alexander Viro , James Morris , Stephen Smalley , Casey Schaufler , "Serge E. Hallyn" , Paul Moore , 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-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, kaleshsingh@google.com, calin@google.com, surenb@google.com, nnk@google.com, jeffv@google.com, kernel-team@android.com Subject: Re: [PATCH v10 0/3] SELinux support for anonymous inodes and UFFD Message-ID: <20201104200701.GA1796392@gmail.com> References: <20201011082936.4131726-1-lokeshgidra@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201011082936.4131726-1-lokeshgidra@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 11, 2020 at 01:29:33AM -0700, Lokesh Gidra wrote: > Daniel Colascione (3): > Add a new LSM-supporting anonymous inode interface > Teach SELinux about anonymous inodes > Use secure anon inodes for userfaultfd Patches are supposed to have subsystem prefixes, e.g. fs, security: add a new LSM-supporting anonymous inode interface selinux: implement init_security_anon() userfaultfd: use secure anon inodes ... but that points to the fact that the first one is really both fs and security subsystem changes. Patches should be one logical change only. I suggest splitting it up into: security: add init_security_anon() LSM hook fs: add anon_inode_getfd_secure() - Eric