jaypipes / ghw

Go HardWare discovery/inspection library
Apache License 2.0
1.64k stars 180 forks source link

root vs CAPS #386

Open hwinkel opened 1 week ago

hwinkel commented 1 week ago

Is there a option to run it with the required CAPS to read infos typically only available for root? or can it run with setuid once?

Some reference: https://medium.com/picus-security-engineering/temporarily-dropping-root-privileges-in-go-ac50d80be70c

jaypipes commented 1 week ago

@hwinkel thanks very much for bringing this to my attention. I'll have a read and see what I can do.