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=-6.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 66A12C2BA1E for ; Mon, 6 Apr 2020 15:29:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2F2EF20719 for ; Mon, 6 Apr 2020 15:29:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PUXZHGoa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2F2EF20719 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EE1706E2DE; Mon, 6 Apr 2020 15:29:15 +0000 (UTC) Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by gabe.freedesktop.org (Postfix) with ESMTPS id DE04C6E249 for ; Sun, 5 Apr 2020 14:10:34 +0000 (UTC) Received: by mail-qt1-x844.google.com with SMTP id b10so4973373qtt.9 for ; Sun, 05 Apr 2020 07:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Fj5IkYeTwvEQJU3mrvn13eBZKNJ+9tUvL96085xGJxE=; b=PUXZHGoaZxdIN6d3dLITTVmOMYMyzD1WzUovhblIhnH0+gX1MNWpAzLXCQgk2kjb4r MlJo8+N8G03Sa1hMX0SzavAQvly8jLAQ+hbQperFpamXKFXDtOKZO1KBx7z3QF7jU4DN v2O2rih9I491tXxgjaiA8y75O5NeuTOBTrBD5lyOIL+4LBqVTqjlPgB8IOP+vdkio7Ne OF0/t3wAwc/c/4fhcxK0mgit6koSfOKh3e8xFvAUuaInvIs+DvGpC7Qx4f3FaJ6/exvW RQ5WEGhuuoq8VdPrvO9ejeK2M4qtHC7mPdoXm5yO6XzAi2YIMIwcRWsAHg60RLTYDgVS MEwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Fj5IkYeTwvEQJU3mrvn13eBZKNJ+9tUvL96085xGJxE=; b=Djlj4Rm4jtAogOnyHgw9zHPBvYC88ZmcKoBVRzfYpto2ay9QtWWInB3ewcBnsQiuYG ZxaSC9VtbRczUvEIgG3D+kgw9YMxDYpOJ4uQsJzyvncaxPsivM092WsgKJhIYmTLBk0r UUVvkg6tfW2D2mJ+J3lUAiESjRj87wfXtRkopp+vhykv00B8gMihdLry4GN5tNiE+Ajb bh/ZiZXtfjYEOAE8I/OEd7Ky01g7zuZOsvErbtuczNAlZ1/lsA2DE1vIgif3aw4/9hZV Oy8j7H3Ag6uFDPYPDfd/06BFJIjI55lT/YSSIvzE+i52/4+cZPI8PgzQ9+BGh4J4JzLE 3P1w== X-Gm-Message-State: AGi0PubediZawhvg5iUDG6v4psG6DJ0QMu4Tz0xrpjSiVH1wFpBULLzO /PujS+90Y56a/fzimaoRf5M= X-Google-Smtp-Source: APiQypJu0uvODNR9YrN0sb4Kh6DQPLH6AalqUaYQK8KEpypo5wVQtssYkV/vcueHnh7R58TbWcdGhg== X-Received: by 2002:aed:2435:: with SMTP id r50mr16393370qtc.314.1586095833851; Sun, 05 Apr 2020 07:10:33 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id 6sm9452806qkr.25.2020.04.05.07.10.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Apr 2020 07:10:32 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id AE02E409A3; Sun, 5 Apr 2020 11:10:29 -0300 (-03) Date: Sun, 5 Apr 2020 11:10:29 -0300 To: Alexey Budankov Message-ID: <20200405141029.GA16896@kernel.org> References: <84c32383-14a2-fa35-16b6-f9e59bd37240@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <84c32383-14a2-fa35-16b6-f9e59bd37240@linux.intel.com> X-Url: http://acmel.wordpress.com X-Mailman-Approved-At: Mon, 06 Apr 2020 15:29:14 +0000 Subject: Re: [Intel-gfx] [PATCH v8 12/12] doc/admin-guide: update kernel.rst with CAP_PERFMON information X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-man@vger.kernel.org, Song Liu , Andi Kleen , "linux-doc@vger.kernel.org" , Peter Zijlstra , linux-kernel , "intel-gfx@lists.freedesktop.org" , Igor Lubashev , Alexei Starovoitov , Stephane Eranian , James Morris , "selinux@vger.kernel.org" , "linux-security-module@vger.kernel.org" , Ingo Molnar , Namhyung Kim , Thomas Gleixner , Jiri Olsa , Serge Hallyn Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Em Thu, Apr 02, 2020 at 11:54:39AM +0300, Alexey Budankov escreveu: > > Update kernel.rst documentation file with the information > related to usage of CAP_PERFMON capability to secure performance > monitoring and observability operations in system. This one is failing in my perf/core branch, please take a look. I'm pushing my perf/core branch with this series applied, please check that everything is ok, I'll do some testing now, but it all seems ok. Thanks, - Arnaldo > Signed-off-by: Alexey Budankov > --- > Documentation/admin-guide/sysctl/kernel.rst | 16 +++++++++++----- > 1 file changed, 11 insertions(+), 5 deletions(-) > > diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst > index def074807cee..b06ae9389809 100644 > --- a/Documentation/admin-guide/sysctl/kernel.rst > +++ b/Documentation/admin-guide/sysctl/kernel.rst > @@ -720,20 +720,26 @@ perf_event_paranoid: > ==================== > > Controls use of the performance events system by unprivileged > -users (without CAP_SYS_ADMIN). The default value is 2. > +users (without CAP_PERFMON). The default value is 2. > + > +For backward compatibility reasons access to system performance > +monitoring and observability remains open for CAP_SYS_ADMIN > +privileged processes but CAP_SYS_ADMIN usage for secure system > +performance monitoring and observability operations is discouraged > +with respect to CAP_PERFMON use cases. > > === ================================================================== > -1 Allow use of (almost) all events by all users > > Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK > > ->=0 Disallow ftrace function tracepoint by users without CAP_SYS_ADMIN > +>=0 Disallow ftrace function tracepoint by users without CAP_PERFMON > > - Disallow raw tracepoint access by users without CAP_SYS_ADMIN > + Disallow raw tracepoint access by users without CAP_PERFMON > > ->=1 Disallow CPU event access by users without CAP_SYS_ADMIN > +>=1 Disallow CPU event access by users without CAP_PERFMON > > ->=2 Disallow kernel profiling by users without CAP_SYS_ADMIN > +>=2 Disallow kernel profiling by users without CAP_PERFMON > === ================================================================== > > > -- > 2.24.1 > -- - Arnaldo _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx