Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4698225ybl; Wed, 22 Jan 2020 03:05:22 -0800 (PST) X-Google-Smtp-Source: APXvYqw89Ho6rX2wx03yU023ysbPiu4dVNWEhc0lDDJt3fJ23TAiJ6CjflUfDbe70Tpt8vx2UifV X-Received: by 2002:a05:6808:8e6:: with SMTP id d6mr6300155oic.78.1579691122845; Wed, 22 Jan 2020 03:05:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579691122; cv=none; d=google.com; s=arc-20160816; b=FeIq8hkv0L/I2M0xuqPC5cLu9xDHOWPxubsJ/yJncyQvK8Pjb03S+2msinHf2erfsT Vn9qZ1PYKcr1hic9C41Yg3IajX/DwTXwlRn4+dMbjfGl6NHjESSM0w35LqBG1JMEZi6Q ChXmBvjXPeKcFwOKLGU85f9WzA56GtapD+rJzhTgxY4rtB9x/Kih3le3UbmaDEF3xS+D W7exiLvZ5A6xlq4qK7nVi1vVRNT8DTzO+aHs0x4r/Wub0w9utYhdZLKd6vpltURzi6Oj kbVe/bP6hVmwDG3oDuzvCjtOoR4qzbICIIEKB4LB1KsCw3ymcJe6xrLsCEwAzyMatdGA QAWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :references:cc:to:subject:from; bh=nK/wwahcPgEGyiwE0N8dyTJg+t1bUjJJxO+p1Y39+I4=; b=tWpflo2O5SBRPl4pKilqnHYaJRxt2G+FLF/4bvaC3lSppoVZgjztvTQxKq9Mq/ghZ8 jxxujKenx6GbbyM8DqXzNPwuNqaDuoTMBNrYQRnH1LMDQCwmj5Sr0GvvFg6enJ5Z+TzH bqXJsm99bzJg5AtFl7uJaevyu7bh9OCzL5omErLbSfUNPQYBIMc1N9YdlTgmSPo7uqyk 79ArVHS/Y5tGEc3VygsAfba3c/X28LqX27a/CSqVRlR5Cu3ge2EONzTM7Y0I/GIMbWPI TIRx2Ln6nW/nQmHf/f6Qq5fUPFFtiu22RV9CzeFolVqcqnOrmSGPo+sO7IMvOuqr6AE8 mLEw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 10si20072374ois.76.2020.01.22.03.05.11; Wed, 22 Jan 2020 03:05:22 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728890AbgAVLCs (ORCPT + 99 others); Wed, 22 Jan 2020 06:02:48 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40318 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726191AbgAVLCr (ORCPT ); Wed, 22 Jan 2020 06:02:47 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00MB2asj123513 for ; Wed, 22 Jan 2020 06:02:46 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2xp95fbnqw-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 22 Jan 2020 06:02:42 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 22 Jan 2020 11:02:16 -0000 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 22 Jan 2020 11:02:07 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 00MB26Fi44433748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Jan 2020 11:02:06 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9A2A74C05A; Wed, 22 Jan 2020 11:02:06 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 849814C044; Wed, 22 Jan 2020 11:02:01 +0000 (GMT) Received: from localhost.localdomain (unknown [9.124.35.72]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 22 Jan 2020 11:02:01 +0000 (GMT) From: Anju T Sudhakar Subject: Re: [PATCH v5 07/10] powerpc/perf: open access for CAP_PERFMON privileged process To: Alexey Budankov Cc: Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar , "jani.nikula@linux.intel.com" , "joonas.lahtinen@linux.intel.com" , "rodrigo.vivi@intel.com" , "benh@kernel.crashing.org" , Paul Mackerras , Michael Ellerman , "james.bottomley@hansenpartnership.com" , Serge Hallyn , James Morris , Will Deacon , Mark Rutland , Robert Richter , Alexei Starovoitov , Song Liu , Andi Kleen , "linux-parisc@vger.kernel.org" , Alexander Shishkin , "linuxppc-dev@lists.ozlabs.org" , "intel-gfx@lists.freedesktop.org" , Igor Lubashev , linux-kernel , Stephane Eranian , "linux-perf-users@vger.kernel.org" , "selinux@vger.kernel.org" , "linux-security-module@vger.kernel.org" , oprofile-list@lists.sf.net, Lionel Landwerlin , Namhyung Kim , Thomas Gleixner , Jiri Olsa , linux-arm-kernel@lists.infradead.org References: <0548c832-7f4b-dc4c-8883-3f2b6d351a08@linux.intel.com> Date: Wed, 22 Jan 2020 16:32:00 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 20012211-0016-0000-0000-000002DFA81F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20012211-0017-0000-0000-000033425322 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-17_05:2020-01-16,2020-01-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 clxscore=1011 mlxscore=0 spamscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001220101 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/20/20 5:00 PM, Alexey Budankov wrote: > Open access to monitoring for CAP_PERFMON privileged processes. > For backward compatibility reasons access to the monitoring remains > open for CAP_SYS_ADMIN privileged processes but CAP_SYS_ADMIN usage > for secure monitoring is discouraged with respect to CAP_PERFMON > capability. Providing the access under CAP_PERFMON capability singly, > without the rest of CAP_SYS_ADMIN credentials, excludes chances to > misuse the credentials and makes the operations more secure. > > Signed-off-by: Alexey Budankov > --- Acked-by: Anju T Sudhakar