Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp745842imm; Sat, 22 Sep 2018 09:39:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV61dNw3vd5zlWyrP9FJip/XnQM/XcbI+6CR+dq1VW365GicmBTA3ZVeV2mmjGp36Vj6UdOj7 X-Received: by 2002:a63:fa49:: with SMTP id g9-v6mr2917243pgk.18.1537634360298; Sat, 22 Sep 2018 09:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537634360; cv=none; d=google.com; s=arc-20160816; b=aGOcPaDNu5kbwOlQOVQquCNqmaDNkTH/8uEM6J02rEo0KTjO6W1BmRluRiZ9JfBVTv 08JGjfCx8JAv6hFxivGd5+RRfL0ZW0i8Ukc8pyH8r+pjBChmVpjnJEHcOPG2UwO2Yw33 ke4zbnocUQLLYENmFfwgE4BdbkskoAfLLwNfEhqeeck3dI2dMMsspYJ/uXlqCkiPwOUW LW+YrPnBJdX17Vi8fghRS9Y/fAz26awBnOCYxwq6BIUpbxsRfqImgPd4gFDujtCM1N4E VXwqlVMD2biXJ1KXiVeLkymCYNTdGhT8ZF13tOzjjdElsS0NpZ5vJkLRAP9vqEALI9dV cbqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=FVKK+wY/E0fyOKd9JNeGWSi7MbkeV0YbAK7BxC/Aic0=; b=b7UoOg7gO24SCl6oY7O+m+JLIoUXbtliNOaEtPhxYWVwC8K3SVogKR5zg4qW78w3H4 4e9Nn97aKsg+4QDEpMn6WKRh8nT81/IPHWRMyeMEig+LXAKqcA8ySdSeo4f/vdwZ94Dq xLCXgHTrBBca45gGwnoxG5zW554IcclQJPEexPCxL8FhA3fbAX9EAq9CfFdmDMzc4YkN 9iueVzSzM/hHt32RXL2qoi8ilWy4a3brC3T+V9hl3Isp63yhUWrerYx1wMfVpjfnTtt4 hy3mfhid4AWScMGMVVtLof9D+c47ViI14If7z7GyS8w1LA/EN+KMgtMc+9fmSjB0781+ o5zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=ophGbOXg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1-v6si27850552pgp.202.2018.09.22.09.39.04; Sat, 22 Sep 2018 09:39:20 -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=@yahoo.com header.s=s2048 header.b=ophGbOXg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728798AbeIVWc1 (ORCPT + 99 others); Sat, 22 Sep 2018 18:32:27 -0400 Received: from sonic305-9.consmr.mail.bf2.yahoo.com ([74.6.133.48]:33641 "EHLO sonic305-9.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728455AbeIVWc1 (ORCPT ); Sat, 22 Sep 2018 18:32:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1537634296; bh=FVKK+wY/E0fyOKd9JNeGWSi7MbkeV0YbAK7BxC/Aic0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=ophGbOXgkDCXmMkB3jiBi1+EVIKEHJaXBKIMp8am66mq8LW6w5fl5KQLZKjl4YGWsu+EP+8jp+t13p5CFHpqErFN4RhE97S69aR6N4g1HJa8DQdB2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bY17OTQLR_cCbXqYQxL10XXW6STtNLDpGTMwu5ve.9n1t9FACXUucB11xsPls1KToFvMWgPDmlQB UbS0hwwkt8Lhi27su1KKloVydQhy_.zTtEllFXy.K9pRI5VhPqrgxnsoLKTagxmWL1LwflgIdWsg AdqMGD7by2JSYx9p4qffGkSThny.5BSOPmrGQ1nIFdxvYmkGd9PKypLetBnx6LqMS5Ri8wASBU_V 8FHKmyIzc7ra4TgO0.kUfOujh.H6zYoKDu4AF7b8- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Sat, 22 Sep 2018 16:38:16 +0000 Received: from c-67-169-65-224.hsd1.ca.comcast.net (EHLO [192.168.0.102]) ([67.169.65.224]) by smtp426.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 97fca731e8f1dd87996fa7fa4d470d00; Sat, 22 Sep 2018 16:38:15 +0000 (UTC) Subject: Re: [PATCH v4 00/19] LSM: Module stacking for SARA and Landlock To: Kees Cook Cc: LSM , James Morris , SE Linux , LKLM , John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , "linux-fsdevel@vger.kernel.org" , Alexey Dobriyan , =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= , Salvatore Mesoraca References: From: Casey Schaufler Message-ID: <680e6e16-0890-8304-0e8e-6c58966813b5@schaufler-ca.com> Date: Sat, 22 Sep 2018 09:38:12 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/21/2018 8:02 PM, Kees Cook wrote: > On Fri, Sep 21, 2018 at 4:59 PM, Casey Schaufler wrote: >> v4: Finer granularity in the patches and other >> cleanups suggested by Kees Cook. >> Removed dead code created by the removal of SELinux >> credential blob poisoning. > Thanks for the splitting, this really does make it easier to review > (at least for me). I think this looks really good, though obviously > I'd like to refactor it slightly on top of my series. :) Whichever goes on top is fine with me. What's one more patch set merge, after all? > One additional thought I had was about the blobs allocations: some are > separate kmem caches, and some are kmalloc. I'm thinking it might make > sense to use separate kmem caches for two reasons: I had seriously considered doing that. I can't see any reason not to. It's something that could be done at any time, and with all the other things that had to change it just didn't get in. > - they're going to always be the same size and are regularly > allocated/freed, so it may offer a performance benefit. > > - they're explicitly not supposed to be exposed to userspace, so > hardened usercopy would protect them if they were not kmalloc()ed. > > I'm excited about getting this landed! Soon. Real soon. I hope. I would very much like for someone from the SELinux camp to chime in, especially on the selinux_is_enabled() removal. On a somewhat related note, I will be out for the first three weeks of October, returning just in time for the Linux Security Summit in Edinburgh. My connectivity will be severely limited. I don't expect to accomplish anything while I'm out.