aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorKrzysztof Wilczyński <[email protected]>2021-09-15 23:01:25 +0000
committerBjorn Helgaas <[email protected]>2021-09-28 17:46:28 -0500
commit95e83e219d68956ba4fed9326683e4d2bd3e39a9 (patch)
treeab28ddc3c9af930a20cad1cb9c8222594b12a8c5 /drivers/usb/cdns3/cdns3-trace.c
parente4e737bb5c170df6135a127739a9e6148ee3da82 (diff)
PCI/sysfs: Check CAP_SYS_ADMIN before parsing user input
Check if the "CAP_SYS_ADMIN" capability flag is set before parsing user input as it makes more sense to first check whether the current user actually has the right permissions before accepting any input from such user. This will also make order in which enable_store() and msi_bus_store() perform the "CAP_SYS_ADMIN" capability check consistent with other PCI-related sysfs objects that first verify whether user has this capability set. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions