From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 585AAC43603 for ; Tue, 17 Dec 2019 11:39:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3912E21739 for ; Tue, 17 Dec 2019 11:39:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727216AbfLQLjH (ORCPT ); Tue, 17 Dec 2019 06:39:07 -0500 Received: from mga14.intel.com ([192.55.52.115]:17567 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726560AbfLQLjH (ORCPT ); Tue, 17 Dec 2019 06:39:07 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Dec 2019 03:39:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,325,1571727600"; d="scan'208";a="209664859" Received: from linux.intel.com ([10.54.29.200]) by orsmga008.jf.intel.com with ESMTP; 17 Dec 2019 03:39:04 -0800 Received: from [10.125.252.241] (abudanko-mobl.ccr.corp.intel.com [10.125.252.241]) by linux.intel.com (Postfix) with ESMTP id 48BEC580458; Tue, 17 Dec 2019 03:38:57 -0800 (PST) Subject: Re: [Intel-gfx] [PATCH v3 4/7] drm/i915/perf: open access for CAP_SYS_PERFMON privileged process To: Lionel Landwerlin , Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar , "jani.nikula@linux.intel.com" , "joonas.lahtinen@linux.intel.com" , "rodrigo.vivi@intel.com" , Alexei Starovoitov , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Serge Hallyn , James Morris , Casey Schaufler Cc: songliubraving@fb.com, Andi Kleen , Kees Cook , "linux-parisc@vger.kernel.org" , Jann Horn , Alexander Shishkin , "linuxppc-dev@lists.ozlabs.org" , intel-gfx@lists.freedesktop.org, Igor Lubashev , linux-kernel@vger.kernel.org, Stephane Eranian , "linux-perf-users@vger.kernel.org" , "selinux@vger.kernel.org" , "linux-security-module@vger.kernel.org" , Namhyung Kim , Thomas Gleixner , Brendan Gregg , Jiri Olsa , "bpf@vger.kernel.org" References: <503ad40c-d94e-df1d-1541-730c002ad3b7@intel.com> From: Alexey Budankov Organization: Intel Corp. Message-ID: Date: Tue, 17 Dec 2019 14:38:56 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <503ad40c-d94e-df1d-1541-730c002ad3b7@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org On 17.12.2019 12:45, Lionel Landwerlin wrote: > On 16/12/2019 22:03, Alexey Budankov wrote: >> Open access to i915_perf monitoring for CAP_SYS_PERFMON privileged processes. >> For backward compatibility reasons access to i915_perf subsystem remains open >> for CAP_SYS_ADMIN privileged processes but CAP_SYS_ADMIN usage for secure >> i915_perf monitoring is discouraged with respect to CAP_SYS_PERFMON capability. >> >> Signed-off-by: Alexey Budankov > > > Assuming people are fine with this new cap, I like this idea of a lighter privilege for i915-perf. Lionel, thanks for your meaningful input! Appreciate your collaboration. Regards, Alexey > > > -Lionel > > >