Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp780983ybl; Wed, 11 Dec 2019 07:25:29 -0800 (PST) X-Google-Smtp-Source: APXvYqx8YyJL4eH+UnLSgIuWIRHUVJ79gOiUsNkpNJUFBoJXtWlse5V0FUOgJzKLn2RuJRZDfGnk X-Received: by 2002:aca:d502:: with SMTP id m2mr3141286oig.41.1576077929203; Wed, 11 Dec 2019 07:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576077929; cv=none; d=google.com; s=arc-20160816; b=E6hitJ/aafnjYbo7j6ubHVl2UULBydhg6NklEogAvcYpdUhnET3liVmEKWSAzAsb8E EacSrbyQG5UhldOTaSDl3KNyWseEw8HoJWlTJJVzow2d7bYniixefIYXmHS9uq6w84IH p0De5TQ6R6Uti0JOmyI/nzbLP3dC/UlEyfU+sNZK2fs3dnvB3qCchXyKCjnrQZmrIwD8 3naKr7NE+Lq87I+2cMNqFxG1beo1ZQjZ2hohpib5h8c76dIK22uoVwhMWD8WlJKOEC0K XeJZMFpxYy4WEw2zop8fdArTXXd1P6SLqvq2cghnfBd77WkLAaa5TCBlFYjqKL/kcf+O HVIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lCtKLzzdaOAiKN6oGE3yx6uTT5U+M8wV3nEecLRcZL4=; b=evW4YPJvvIuhMchcn28FlP0vwxd5l+nj/UuQ8L8CI1iHO+QxfnRYI3TYoPrmL+HQRv MdsTMzfquFfjWbh+Ii/CxRXXcRWt4bMwSLr08A1NqBBTi/zzJPvfbqI6TkwToDFth4Z3 zOxnEH4fNrhPOfpUvwyyHJ7Ez3r6f+kaB/WyZa3g/lBtty8bhAhm/0/Yv1arjabjWqDm cgezq8G4PmYVXh73mefBPYdFx4EHy0uLTVxCZethNN+YUMDsatU5Y1iZx1xuWSWcLW3z hDDgsbbMwuDa0+k9ZlcQZgRdAOJGbgGUxvtwQXGKimDceGrZPH8brYWkftZwol2rR9UK kkZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JQ+T1bbR; 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 h4si1145000otk.172.2019.12.11.07.25.17; Wed, 11 Dec 2019 07:25:29 -0800 (PST) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=JQ+T1bbR; 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 S1732885AbfLKPYq (ORCPT + 99 others); Wed, 11 Dec 2019 10:24:46 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:46658 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732714AbfLKPYn (ORCPT ); Wed, 11 Dec 2019 10:24:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lCtKLzzdaOAiKN6oGE3yx6uTT5U+M8wV3nEecLRcZL4=; b=JQ+T1bbRmiOoN11jYVC7+m0HU JoyGLNA3Nzw1yp7vwy93I53nt5PqCLktzdgmHlodPSYRBP/HJ6z3hZMf9gWmZokOE8ltuaquR05Cz mh7n3UdMKbcvok3uc+IYpnOsTzdHT+oK0Cd1IOXLrtnznq3i72h+XDgKNNEtH3YCHpyOVOGEeDSVU ZdY9dzNbIkF61y5/Kk4IXcyJ3HLTVcH7P5y9SsVsWaaXMuCAN+eOPKnrHFlq5Io0xxz/FCzLFaC6z Gmo6Eog8Rbc/geQNHiYrLw84TJkBbw71cV1QH/c9t6gRmbvzTmGk3mSeDv4a2Nq9zefrComnPIvZJ LGByA1Pdw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1if3qw-0001sp-5J; Wed, 11 Dec 2019 15:24:38 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 56095306060; Wed, 11 Dec 2019 16:23:15 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3BF3220137C8F; Wed, 11 Dec 2019 16:24:35 +0100 (CET) Date: Wed, 11 Dec 2019 16:24:35 +0100 From: Peter Zijlstra To: Alexey Budankov Cc: Casey Schaufler , Arnaldo Carvalho de Melo , Ingo Molnar , Jiri Olsa , Andi Kleen , elena.reshetova@intel.com, Alexander Shishkin , Jann Horn , Kees Cook , Stephane Eranian , Namhyung Kim , linux-security-module@vger.kernel.org, selinux@vger.kernel.org, linux-kernel Subject: Re: [PATCH v1 0/3] Introduce CAP_SYS_PERFMON capability for secure Perf users groups Message-ID: <20191211152435.GN2827@hirez.programming.kicks-ass.net> References: <283f09a5-33bd-eac3-bdfd-83d775045bf9@linux.intel.com> <1e836f34-eda3-542d-f7ce-9a3e87ac5e2e@schaufler-ca.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 11, 2019 at 01:52:15PM +0300, Alexey Budankov wrote: > Undoubtedly, SELinux is the powerful, mature, whole level of functionality that > could provide benefits not only for perf_events subsystem. However perf_events > is built around capabilities to provide access control to its functionality, > thus perf_events would require considerable rework prior it could be controlled > thru SELinux. You mean this: da97e18458fb ("perf_event: Add support for LSM and SELinux checks") ? > Then the adoption could also require changes to the installed > infrastructure just for the sake of adopting alternative access control mechanism. This is still very much true.