Revert "pci: use security_capable() when checking capablities during config space...
authorLinus Torvalds <[email protected]>
Sun, 13 Feb 2011 15:50:50 +0000 (07:50 -0800)
committerLinus Torvalds <[email protected]>
Sun, 13 Feb 2011 15:50:50 +0000 (07:50 -0800)
commitf00eaeea7a42b5ea327e9ce8839cb0b53d3bdb4e
tree9c87581db9131af941027f34f7504c61e632d392
parenta0dc00b430b7f515904aa6dd62296b577e94c7aa
Revert "pci: use security_capable() when checking capablities during config space read"

This reverts commit 47970b1b2aa64464bc0a9543e86361a622ae7c03.

It turns out it breaks several distributions.  Looks like the stricter
selinux checks fail due to selinux policies not being set to allow the
access - breaking X, but also lspci.

So while the change was clearly the RightThing(tm) to do in theory, in
practice we have backwards compatibility issues making it not work.

Reported-by: Dave Young <[email protected]>
Acked-by: David Airlie <[email protected]>
Acked-by: Alex Riesen <[email protected]>
Cc: Eric Paris <[email protected]>
Cc: Chris Wright <[email protected]>
Cc: James Morris <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/pci/pci-sysfs.c