aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorKelsey Skunberg <skunberg.kelsey@gmail.com>2019-09-05 00:32:26 -0600
committerBjorn Helgaas <bhelgaas@google.com>2019-09-05 13:26:23 -0500
commit244c06c3b6d86513066426c9707ee460cd845349 (patch)
tree8927c4e1a6e2d301d5cbd0b8a3d178175010c70f /drivers/pci/pci.c
parentPCI/IOV: Move sysfs SR-IOV functions to iov.c (diff)
downloadwireguard-linux-244c06c3b6d86513066426c9707ee460cd845349.tar.xz
wireguard-linux-244c06c3b6d86513066426c9707ee460cd845349.zip
PCI/IOV: Remove group write permission from sriov_numvfs, sriov_drivers_autoprobe
Previously the sriov_numvfs and sriov_drivers_autoprobe sysfs files had 0664 permissions, which allowed group write. libvirt runs as root when dealing with PCI, and it chowns files needed by qemu, so group write permission should not be needed. Change these permissions from 0664 to 0644, which is what DEVICE_ATTR_RW() does by default. [bhelgaas: commit log] Link: https://lore.kernel.org/r/20190905063226.43269-1-skunberg.kelsey@gmail.com Link: https://lore.kernel.org/r/850cf536-0b72-d78c-efaf-855dcb391087@redhat.com Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Donald Dutile <ddutile@redhat.com>
Diffstat (limited to 'drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions