lkml.org 
[lkml]   [2020]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V3 3/3] platform/x86: Intel PMT Telemetry capability driver
From
Date
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.

David

\
 
 \ /
  Last update: 2020-07-16 02:00    [W:0.127 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site