Re: [PATCH v4] PCI/sysfs: Change read permissions for VPD attributes
From: Leon Romanovsky
Date: Tue Feb 25 2025 - 15:06:43 EST
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"
>
> Andrew