• Linus Torvalds's avatar
    pci-sysfs: use proper file capability helper function · ab0fa82b
    Linus Torvalds authored
    The PCI config access checked the file capabilities correctly, but used
    the itnernal security capability check rather than the helper function
    that is actually meant for that.
    
    The security_capable() has unusual return values and is not meant to be
    used elsewhere (the only other use is in the capability checking
    functions that we actually intend people to use, and this odd PCI usage
    really stood out when looking around the capability code.
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    ab0fa82b
pci-sysfs.c 38.5 KB