Re: [PATCH v4] PCI/sysfs: Change read permissions for VPD attributes

From: Bjorn Helgaas
Date: Mon Mar 03 2025 - 16:18:07 EST


On Tue, Feb 25, 2025 at 10:05:49PM +0200, Leon Romanovsky wrote:
> On Tue, Feb 25, 2025, at 20:59, Andrew Lunn wrote:
> >> Chmod solution is something that I thought, but for now I'm looking
> >> for the out of the box solution. Chmod still require from
> >> administrator to run scripts with root permissions.
> >
> > It is more likely to be a udev rule.
>
> Udev rule is one of the ways to run such script.
>
> > systemd already has lots of examples:
> >
> > /lib/udev/rules.d/50-udev-default.rules:KERNEL=="rfkill", MODE="0664"

Where are we at with this? Is a udev rule a feasible solution?