]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Restrict VPD read permission to root
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 1 Jul 2008 16:18:17 +0000 (17:18 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 1 Jul 2008 16:51:53 +0000 (09:51 -0700)
commitd17a73c6e05acafa04fc6b20505bb039480efb89
treeb33c29082b1294287bb45f95730f87db002fba98
parent34246e4c502ac282633f3eafc395e419462ff184
PCI: Restrict VPD read permission to root

Some PCI devices will lock up if we attempt to read from VPD addresses
beyond some device-dependent limit.  Until we can identify these
devices and adjust the file size accordingly, only let root read VPD
through sysfs to prevent a DoS by normal users.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-sysfs.c