[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8a580318-9bd4-1146-f2e9-6cb851828762@linux.intel.com>
Date: Thu, 16 Jul 2020 08:57:24 +0300
From: Alexey Budankov <alexey.budankov@...ux.intel.com>
To: david.e.box@...ux.intel.com, lee.jones@...aro.org,
dvhart@...radead.org, andy@...radead.org, bhelgaas@...gle.com,
alexander.h.duyck@...ux.intel.com
Cc: linux-kernel@...r.kernel.org, platform-driver-x86@...r.kernel.org,
linux-pci@...r.kernel.org,
Alexey Budankov <alexey.budankov@...ux.intel.com>
Subject: Re: [PATCH V3 3/3] platform/x86: Intel PMT Telemetry capability
driver
On 16.07.2020 2:59, David E. Box wrote:
> On Wed, 2020-07-15 at 10:39 +0300, Alexey Budankov wrote:
>> Hi David,
>>
>> On 14.07.2020 9:23, David E. Box wrote:
>
> ...
>
>>>
>>> +static int pmt_telem_open(struct inode *inode, struct file *filp)
>>> +{
>>> + struct pmt_telem_priv *priv;
>>> + struct pmt_telem_entry *entry;
>>> + struct pci_driver *pci_drv;
>>> + struct pci_dev *pci_dev;
>>> +
>>> + if (!capable(CAP_SYS_ADMIN))
>>
>> Thanks for supplying these patches.
>> Are there any reasons not to expose this feature to CAP_PERFMON
>> privileged
>> processes too that currently have access to performance monitoring
>> features
>> of the kernel without root/CAP_SYS_ADMIN credentials? This could be
>> done by
>> pefmon_capable() function call starting from v5.8+.
>
> The new capability is well suited for this feature. I'll make the
> change. Thanks.
I appreciate your cooperation. Thanks!
Alexei
Powered by blists - more mailing lists