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

From: Andrew Lunn
Date: Tue Feb 25 2025 - 12:40:39 EST


> We always read VPD by using "sudo ..." command, until one of our customers
> requested to provide a way to run monitoring library without any root access.
> It runs on hypervisor and being non-root there is super important for them.

You can chmod files in sys. So the administrator can change the
permissions, and then non-root users can access it.

This seems a more scalable solution that adding a special case in the
kernel.

Andrew