Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1743388ybp; Wed, 9 Oct 2019 19:47:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFUPZWGfLwVtmtqhCF51cGfgmHSmlsm1mCFkSC30rvq5w4fe61Z1ReaSbsmcrih8cZfwtO X-Received: by 2002:a50:cd17:: with SMTP id z23mr6054508edi.250.1570675669584; Wed, 09 Oct 2019 19:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570675669; cv=none; d=google.com; s=arc-20160816; b=YdnIOuT1T86p9ent96DiE/mDUw+A36h9ro8OqG6xPH0DKG1EpJlVApO6SPDowIWNOX +FmN98FQ83taBEdQgGM+dSO6c2vV3rMSoicMK0L6lXcLuAtv5ERikM+zBhdST5sg5AsW X/Uj5FHwXowYLI4phpDeo7NeZkLCQDnHeghOLiwcbK+cz4VmIdhVdTY6C5TqlTf+tLKb TWttw+sEaFR6yKn2IASN5g6iJBl8q29KJDbysIF+Svmaw+yMrYgYnoS2HpRrEy+oxiE6 UlccpFvTHEdyX95570unuOXxz/L/jd1mWHX/vrT/XocaZugNxm6D8PN3XSi5XvgFQ9Im NmVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=jBiGawDiihdkFYP4GtwKXPC/TFAH8tzShORcysWrQh8=; b=NA/qLWNocbcBImvaShgSHsKBhjDz4hmTxuBgSV3SSF2PnPfFV0PH1cKI2QR2AXUwhV Xnwe5oOshYiaLJ40it/8aSFLIx7yK4N2xbsz3Y9FEzuBWAHI/oKflXUbgdqzituzTfc+ Ghg1uwvcTw1vFJpR3Kdutxdth+Oq3VjME82i1lUCxevTXBBefgXNFI2u5HHN8ni67VSu 4LP17EJihGAO2ItUT8Io/Yh8KYxHsZM5KUX8O0Ptz5n5YBFfhgGiffBL2epqD5rxHgQi 1iiFvJftYPmIKl0523b2Se5K/vv9cOIjNhfHeEPcLh6+NpMzvKqrMx62mGWigVyyf7JG kiEA== ARC-Authentication-Results: i=1; mx.google.com; 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 i23si2296710edr.191.2019.10.09.19.47.25; Wed, 09 Oct 2019 19:47:49 -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; 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 S1732707AbfJJCpH (ORCPT + 99 others); Wed, 9 Oct 2019 22:45:07 -0400 Received: from namei.org ([65.99.196.166]:53422 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732252AbfJJCpG (ORCPT ); Wed, 9 Oct 2019 22:45:06 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id x9A2i0Zt009033; Thu, 10 Oct 2019 02:44:00 GMT Date: Thu, 10 Oct 2019 13:44:00 +1100 (AEDT) From: James Morris To: Casey Schaufler cc: "Joel Fernandes (Google)" , linux-kernel@vger.kernel.org, Peter Zijlstra , rostedt@goodmis.org, primiano@google.com, rsavitski@google.com, jeffv@google.com, kernel-team@android.com, Alexei Starovoitov , Arnaldo Carvalho de Melo , bpf@vger.kernel.org, Daniel Borkmann , Ingo Molnar , Jiri Olsa , Kees Cook , linux-security-module@vger.kernel.org, Matthew Garrett , Namhyung Kim , selinux@vger.kernel.org, Song Liu , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Yonghong Song Subject: Re: [PATCH RFC] perf_event: Add support for LSM and SELinux checks In-Reply-To: <2b94802d-12ea-4f2d-bb65-eda3b3542bb2@schaufler-ca.com> Message-ID: References: <20191009203657.6070-1-joel@joelfernandes.org> <710c5bc0-deca-2649-8351-678e177214e9@schaufler-ca.com> <2b94802d-12ea-4f2d-bb65-eda3b3542bb2@schaufler-ca.com> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Oct 2019, Casey Schaufler wrote: > On 10/9/2019 3:14 PM, James Morris wrote: > > On Wed, 9 Oct 2019, Casey Schaufler wrote: > > > >> Please consider making the perf_alloc security blob maintained > >> by the infrastructure rather than the individual modules. This > >> will save it having to be changed later. > > Is anyone planning on using this with full stacking? > > > > If not, we don't need the extra code & complexity. Stacking should only > > cover what's concretely required by in-tree users. > > I don't believe it's any simpler for SELinux to do the allocation > than for the infrastructure to do it. I don't see anyone's head > exploding over the existing infrastructure allocation of blobs. > We're likely to want it at some point, so why not avoid the hassle > and delay by doing it the "new" way up front? Because it is not necessary. -- James Morris