Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp123722imm; Fri, 21 Sep 2018 19:58:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZhKu69b2upr3oQXJOmHk8u8y8f1e33+Hz1zIVCU2gf49akZWkknDZH49yCB7EqZrXqByfq X-Received: by 2002:a62:ad9:: with SMTP id 86-v6mr531823pfk.57.1537585132166; Fri, 21 Sep 2018 19:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537585132; cv=none; d=google.com; s=arc-20160816; b=p/Steuz8U1RotpBR6xKKsSEcKIsdye0cFVouIH+CWNDxIWWF2sUL11AvkVxwBNPv09 T6hnD/gROTTiDFBMKtncvjZmi5aTZhxQbZRfWn3wrSh8gcEr3gCUlpcUgYywKuMhGIxP bxu1wkhiLZW+rUndMCl5C/yXhqfgfBRAx0DuNQYTDTTAuon1COpIZK8vcenvhuHYuZqi Q8WRoqOkGxeS913UK0TgnkvJAT34padkvoKoctfEX3p9Semo7hc8nLI+16UeeGApXc7y CtSfQ20rt01DqQmZhgVi7Mc7YZ0nvrflVJL/xKXHNh6WpiG6A0YRhUyXRrcKpOB1HpvW ho1g== 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=fqtmSX+sw2Gw5cwP9H4XIT+A4pBxM7+TarOUk6KMXt0=; b=waB0EV5NBSSJL6BIwKnxdx3M4yQM+yrlIPpwUquiCRsRmUdjulL7dVO/trPoPU4jfU HzEjqe9t/WDctWD5jZZ25p0yfbvCrH9gaYkfOhA5q+9JHfolaCWKa9hEfOh4TzJtK0e1 edhbguFTainr8s9A/qtULIcAFilqgzl4oi02YupGItJ2wuY1iENE3+f5djEycezVQfNL zh4Sspz9DWR7BrsIIlkQyvciuohaWWEAJk8P2RthHZQ79Bmvj0OW8548tz+zX1W4SM5M hoJOmPgUYuDphPKKDncoH9GkXUcHOUIFYZlcuL5dRTQg1v1LBDVKGKuHPgwoCD3nA7a8 fULA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="hREW/Ll2"; 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 r14-v6si29362326pfa.44.2018.09.21.19.58.37; Fri, 21 Sep 2018 19:58:52 -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="hREW/Ll2"; 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 S1726336AbeIVIsP (ORCPT + 99 others); Sat, 22 Sep 2018 04:48:15 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:40114 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725786AbeIVIsP (ORCPT ); Sat, 22 Sep 2018 04:48:15 -0400 Received: by mail-yw1-f66.google.com with SMTP id z143-v6so5974364ywa.7 for ; Fri, 21 Sep 2018 19:56:24 -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=fqtmSX+sw2Gw5cwP9H4XIT+A4pBxM7+TarOUk6KMXt0=; b=hREW/Ll2mRpvNq8w0SvCgMmE30mCBdCTp06J7r2cPh2AZ1s9Ss3aGZcfXyd4xxJC12 rMae314wfDebPOyIRp0ObUDW5+8ARApxmACY4owL26Fxd+U0+y/mcYEldXA/yuBXPfn4 KWXmSJ+LEoZeVwECkqZ0yHW/X7jemuJ9sO/kg= 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=fqtmSX+sw2Gw5cwP9H4XIT+A4pBxM7+TarOUk6KMXt0=; b=MbJh0zCVaIia8pokO3CqFk/4+wtO0YX/0gLvnEPkBL3q5PgtFoY3OenL9PHwXD1a7V jv8qA8t9bmJIC9YZYMn5bvB1N8bvlm6sYMF7hwviwrAMiaiPbtQGRnY94L6q6vlTfsb/ F0OOKJTqMrhFhwXJIaZ+8Umz4jEIR+im15ElvLXjJdy3e2KTHTjVrgmYN1vNbO1IUzFa NRTP8fIWHHDlgkHv3raoIUvLSj0w0ib0wxTif2jdfw3yhfLTIIggy2ORrVBINsQuZHJJ NvXbntN4tRa6Blmwg1LIdyegLWq1ZQG5giSBe6pPq2qIYqTjUgohEBlemaozxk0TPqm0 I3aA== X-Gm-Message-State: APzg51A1TNUiHRKXw45Hmbdot5wk+q69lcNZsCOjLWvnAEkc+EL9NNHK v/TnO7Ew/w5d3pnzQkaOCHKnQa2CUEY= X-Received: by 2002:a81:a014:: with SMTP id x20-v6mr216006ywg.468.1537584983138; Fri, 21 Sep 2018 19:56:23 -0700 (PDT) Received: from mail-yw1-f41.google.com (mail-yw1-f41.google.com. [209.85.161.41]) by smtp.gmail.com with ESMTPSA id f5-v6sm5001842ywa.39.2018.09.21.19.56.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 19:56:22 -0700 (PDT) Received: by mail-yw1-f41.google.com with SMTP id q129-v6so5977377ywg.8 for ; Fri, 21 Sep 2018 19:56:21 -0700 (PDT) X-Received: by 2002:a0d:d347:: with SMTP id v68-v6mr221326ywd.124.1537584981439; Fri, 21 Sep 2018 19:56:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Fri, 21 Sep 2018 19:56:20 -0700 (PDT) In-Reply-To: References: From: Kees Cook Date: Fri, 21 Sep 2018 19:56:20 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 15/19] LSM: Infrastructure management of the task security 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:19 PM, Casey Schaufler wrote: > Move management of the task_struct->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. > The only user of this blob is AppArmor. The AppArmor use > is abstracted to avoid future conflict. > > Signed-off-by: Casey Schaufler Reviewed-by: Kees Cook -Kees -- Kees Cook Pixel Security