Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1588246pxf; Fri, 19 Mar 2021 10:26:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1SVf8OioJt1upmobPdCzjw8IryebL44xqvjzlhfF0gwWMe6K8JaHU5Izr2VsIuVlGxond X-Received: by 2002:a05:6402:110b:: with SMTP id u11mr11275473edv.356.1616174777890; Fri, 19 Mar 2021 10:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616174777; cv=none; d=google.com; s=arc-20160816; b=oEiiJgjhMCZIZCbNg7F5LaAzkFUcEKYlEAjTSBefiIRx1i1qPxRZ5wmGvnj+ySr/41 15/yDJiNCAvD1K5VzzY148W0w3aqAmY6nVWwvIFge8G0tvq+O+4EZRwvPePuKgWWcuJd z9VxfcObFmmD5nC+z6Fm8O5gRP45w4ilzdTIUaTmC/F0Q6ACSRTMK5fvpu6w8EPEoQFp qyqNvZwSGQdK/eI923ugiOwSV4o4XWH8W4oPVLBHKfkNN/6pDcE+/ilVRvkEMMrGttlb ptN5G0JzoWEJJ34Yet0ChfNm0q5dWiqj8B3tQDzmhp+IsKlxjWTaOnHbZQCuefyR2XfU Ai2A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=y3HPFVQQ8OcLuuAynRQtdLIpt1ZlQVl3Ddi5JOdBy0s=; b=y9inDgwj3sGckOqH0IRcSF8QVd/kVI+wuPBPOAXucKistqrW5KSw8ieMKGqIIHSR+j B6SBIaMssULPcUyvpPchV5tP5aEQA/3v3xyDEW3kdNn2hPqs37KDGV074CI95YfCgY/o jBFYpqsUpCjfcenE/QVE3gb8D78x0gChVGbvB96pm8ce2pPpoQM18GiTESOgM/yfMvxG +2YIfEqd1m2CjbSKiig+6BTnJaRI+NvSxPYZCS7fBhwqHAdK9RVGY3wsPxSEMMngMMtK faiDn8sjwJNJ0OACjA5cu9qUiHU522OAGAf5biGQNZ7n7SXhAl+JD+AqOpCO1wuLddkB Uuwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="ijJD/g9Z"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si5003044edd.474.2021.03.19.10.25.54; Fri, 19 Mar 2021 10:26:17 -0700 (PDT) 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=@chromium.org header.s=google header.b="ijJD/g9Z"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230245AbhCSRY5 (ORCPT + 99 others); Fri, 19 Mar 2021 13:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbhCSRYc (ORCPT ); Fri, 19 Mar 2021 13:24:32 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A7CC06175F for ; Fri, 19 Mar 2021 10:24:32 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id y200so6364648pfb.5 for ; Fri, 19 Mar 2021 10:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=y3HPFVQQ8OcLuuAynRQtdLIpt1ZlQVl3Ddi5JOdBy0s=; b=ijJD/g9ZP1Yyl5fSfAFOPGlYJua+C5SS43o3CNhGgSeVXgnDiCqKQcxgzUtQ61O1a6 H1DD1WppKq7fzQ315rtxWK9GISWoLs2ph+RpDHyd71ihbwa/fgRSHBtsctslONiHt+uZ IeDn5qP5KUNNOs2PjSdqbqFrlcXgz6WS/Gnp4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=y3HPFVQQ8OcLuuAynRQtdLIpt1ZlQVl3Ddi5JOdBy0s=; b=XccFD31d7jcdU8yVJAvyO0Aci5yQFWyXWn9gJrKtqpZ/a7VWXnQg2NaZIxuMe9c2ik foLOFCC0CwGPyEAE66psmXvmYCkKp+E7s61fkPBkMldauiJuWlb2P8vo0yAfBDMFvTHs K8Z/Mzc4n74lqdEkIRAHE4rRaD3k8HK6hnbKzToOz0K56fCfP+Xygg85eQAWAQUYxzNR 4VLNdjGGgY/tRV71JdToWkwsNtAY0sqN6dTLTK2DBSvtQuz4bhHnW8DOHblkuTxt1u0V yJ8SDr5w9K8SssOKeuzlr4+oXoz1MfduoAE39/tJST9lAZLwgAlMFMEuEBRqEclbH9Yl lklA== X-Gm-Message-State: AOAM533H7KY53qgD3TdrDCThhyGXv/wyNcNKMuKsWn7F1Ck+XQTLd2ff TWht6i+E91e/CK36ZTr+EJ5vzw== X-Received: by 2002:a65:4887:: with SMTP id n7mr12266351pgs.14.1616174671959; Fri, 19 Mar 2021 10:24:31 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 2sm5994795pfi.116.2021.03.19.10.24.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 10:24:31 -0700 (PDT) Date: Fri, 19 Mar 2021 10:24:30 -0700 From: Kees Cook To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: James Morris , Jann Horn , "Serge E . Hallyn" , Al Viro , Andrew Morton , Andy Lutomirski , Anton Ivanov , Arnd Bergmann , Casey Schaufler , David Howells , Jeff Dike , Jonathan Corbet , Michael Kerrisk , Richard Weinberger , Shuah Khan , Vincent Dagonneau , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-security-module@vger.kernel.org, x86@kernel.org, John Johansen , =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Stephen Smalley Subject: Re: [PATCH v30 05/12] LSM: Infrastructure management of the superblock Message-ID: <202103191024.40EBCA2C@keescook> References: <20210316204252.427806-1-mic@digikod.net> <20210316204252.427806-6-mic@digikod.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210316204252.427806-6-mic@digikod.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 16, 2021 at 09:42:45PM +0100, Micka?l Sala?n wrote: > From: Casey Schaufler > > Move management of the superblock->sb_security blob out of the > individual security modules and into the security infrastructure. > Instead of allocating the blobs from within the modules, the modules > tell the infrastructure how much space is required, and the space is > allocated there. > > Cc: Kees Cook > Cc: John Johansen > Signed-off-by: Casey Schaufler Reviewed-by: Kees Cook -- Kees Cook