Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root permissions should not be a requirement? #5

Open
gabhijit opened this issue Aug 7, 2020 · 0 comments
Open

Root permissions should not be a requirement? #5

gabhijit opened this issue Aug 7, 2020 · 0 comments

Comments

@gabhijit
Copy link

gabhijit commented Aug 7, 2020

After looking at all the options available through --help. It looks like this is a read-only access to pci config space. So ideally root access should not be a requirement.

Also took a quick look at sysfs - /sys/pci/devices/

ls -rtl /sys/devices/pci0000\:00/0000\:00\:00.0/config 
-rw-r--r-- 1 root root 256 Aug  6 23:28 /sys/devices/pci0000:00/0000:00:00.0/config

shows config space is world readable.

Also, I can run lspci -t without a root user.

I quickly tried to remove the check and test - it's not working consistently. But once or twice it did show up a couple of devices!

@gabhijit gabhijit changed the title Root permissions should not be requirement? Root permissions should not be a requirement? Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant