Skip to content

Commit 6420679

Browse files
committed
Bugfix: set proper access rights for pci sysfs 'resource' file.
- This bug prevented lspci to function correctly for other users.
1 parent 21e9f05 commit 6420679

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

patches/linux_uio/pda_sysfs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ chmod -R gu+r+w-x "$1"/bar* "$1"/resource* "$1"/config' $UIO_GROUP {} \;
1717
find -L $UIO_PATH -maxdepth 1 -iname "*:*:*.*" -exec bash -c \
1818
'chmod -R o-r-w-x "$1"/bar* "$1"/resource* "$1"/config' $UIO_GROUP {} \;
1919

20+
find -L $UIO_PATH -maxdepth 1 -iname "*:*:*.*" -exec bash -c \
21+
'chmod -R 444 "$1"/resource' $UIO_GROUP {} \;
22+
2023
chown root:$UIO_GROUP /dev/uio*
2124
chmod gu+r+w /dev/uio*
2225

0 commit comments

Comments
 (0)