On Tue, Feb 25, 2025, at 19:30, Andrew Lunn wrote: >> 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. Special case is an outcome of discussion in previous versions. My initial patch which I believe is the right approach is to allow non-root read access to VPD for everyone. 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. Thanks > > Andrew