Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp124149imm; Fri, 21 Sep 2018 19:59:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV616LrTtnYDAL7kRHtvjeuXbGYTGzLF4RRdT30l7xB8FTaNPSgScOCD0yH3LnqksWTX/3H0J X-Received: by 2002:a17:902:722:: with SMTP id 31-v6mr470384pli.207.1537585174414; Fri, 21 Sep 2018 19:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537585174; cv=none; d=google.com; s=arc-20160816; b=UfKaEhmyXAATIkOuKtDL6JnpsiTLK6AJS8IYdSaXzPRpCb+rMGoxE0k6KUy+HJ3UY1 5ITL/vrNhoj/YDsEFUQNWHIh9fd3yFcJaMj2alYlO9rFmYf/hEINRzN4Efnh8cUpI9VB raPHcCT1UaQTGJD3jukzw389dm5qsjIOcpEdPfPdgJ1ncKZxZLP2HVpOm4QIpPDqmDf0 kUxukBzC48rP5Y9nB2FLoOA+P0xotvUlTLi7zzxfHoZ99JOioJLki1QyeJSSsDdetUzG 3wvcrrNHBTxSsSjT9Ag7ot2UXWRiXMu25wDlTk97hS0CWjkVeFDpXAc6wmvmn5JG22r3 p6qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=fLw5DNn3KWxvKhB6CEeQ8nQV65X7iyHkX0FWs7hYoHk=; b=N+OVShXVcKnpykeOfMcKiXJj+uIf0m8BqimyQXjHFVMstgESOK39huE3eDbLLOq5cF 2c0xcEC25zPbEhg2Ifb+Xa/G2oD/FiPN4kPuFbDH1gRaoiK88U+xl0/41rW0BPztEVSi HUzlIoGMy2+twExTvetwWO2XAjlhrNjYp42UOVH+G6m2x2ol7iRLAAMUATdweiC8w7uu VLxr49zB3t99ZrDx6p1LNcOJgfxBnszbLa2KHrcVBsk8wCAaUN+iAeQyB5njFcmFfpZd 3ZuTPE2qdU9zSHRNLGWF1b82KrARD4gXoJ7gjemI1MlRNr044Z1UDMGK2jHG54ZnnqTT 6Sfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="AKXpM0x/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v19-v6si28696414pgh.36.2018.09.21.19.59.18; Fri, 21 Sep 2018 19:59:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="AKXpM0x/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727473AbeIVIuK (ORCPT + 99 others); Sat, 22 Sep 2018 04:50:10 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:36783 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbeIVIuK (ORCPT ); Sat, 22 Sep 2018 04:50:10 -0400 Received: by mail-yb1-f194.google.com with SMTP id 5-v6so6264975ybf.3 for ; Fri, 21 Sep 2018 19:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fLw5DNn3KWxvKhB6CEeQ8nQV65X7iyHkX0FWs7hYoHk=; b=AKXpM0x/xvww27lqOk0zbzbxqUpWYCeJp4EsYIBqr5q7IkjmEt3Jvkp/T60Tr0mfi1 2OXquogaeXp8TPz0rputtuhkOAZN9I1HrWNTZzm8ZkLVpcdgXJRfbAy/9Yj02Nb7KzT1 OkN12eftI9Wchd1yMskvMizvmQmOfJjJ2/wnk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fLw5DNn3KWxvKhB6CEeQ8nQV65X7iyHkX0FWs7hYoHk=; b=j7VJ2MFiPKNu8myNGbNHW2omsaU3anvHsijjrH8do4FCacmU/cpdkY4Af0+H4itjDn b7RqcNmEg0xqhkyFhiUPb2euzo4WKHHm84HXKR4jje6U/AjlXveGGvXgrIFQtPkTjVtv B6RR/UNFNr93Oo4V6ygOHGsyWX+TCDI/xOAkG67H9bKNo8BGf82pbYLeThdHABu3gD5P RNewThFqpMTxasnC+tXTPlSuBV/YDn0RTjbMgITLWyQzH+q4GKy8t043oAVGzsq1ftYp FyEYxz/9qL6+MMvIHGRWjaSscfB0jB58u6v+wgqqkBZgRxUvpbywWDxla5womUJ+TFN8 8I+g== X-Gm-Message-State: ABuFfoiK1DmsLaj7KRfz9My8jwktHi4ZhmlwSq62WkG0svvYtVr3de0n N3Sj7AnBwJGL5Q2aa93oSL0Ux+2rMzM= X-Received: by 2002:a25:6892:: with SMTP id d140-v6mr214040ybc.308.1537585098167; Fri, 21 Sep 2018 19:58:18 -0700 (PDT) Received: from mail-yw1-f43.google.com (mail-yw1-f43.google.com. [209.85.161.43]) by smtp.gmail.com with ESMTPSA id m187-v6sm867697ywb.54.2018.09.21.19.58.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 19:58:17 -0700 (PDT) Received: by mail-yw1-f43.google.com with SMTP id g3-v6so1348741ywb.6 for ; Fri, 21 Sep 2018 19:58:16 -0700 (PDT) X-Received: by 2002:a81:2908:: with SMTP id p8-v6mr202979ywp.407.1537585096185; Fri, 21 Sep 2018 19:58:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Fri, 21 Sep 2018 19:58:15 -0700 (PDT) In-Reply-To: <4e4a7033-a86d-a30f-7420-acd765f90534@schaufler-ca.com> References: <4e4a7033-a86d-a30f-7420-acd765f90534@schaufler-ca.com> From: Kees Cook Date: Fri, 21 Sep 2018 19:58:15 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 18/19] LSM: Infrastructure management of the ipc security blob To: Casey Schaufler Cc: LSM , James Morris , SE Linux , LKLM , John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , "linux-fsdevel@vger.kernel.org" , Alexey Dobriyan , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , Salvatore Mesoraca Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 21, 2018 at 5:20 PM, Casey Schaufler wrote: > Move management of the kern_ipc_perm->security and > msg_msg->security blobs 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. > > Signed-off-by: Casey Schaufler Reviewed-by: Kees Cook -Kees -- Kees Cook Pixel Security