Closed martinpitt closed 2 years ago
Revert commit 4b1ab11c244a0a488bb. Merely setting $SYSTEMD_DEVICE_VERIFY_SYSFS does not work for GI bindings. Instead, wrap fstatfs() and mangle the type to SYSFS_MAGIC if the path points into our mocked /sys. This satisfies udev.
$SYSTEMD_DEVICE_VERIFY_SYSFS
Fixes https://github.com/systemd/systemd/issues/23499
@benzea WDYT?
I ran upower's integration tests against this, and they are happy now :tada:
This is a quickfix. Follow-ups:
is_fd_in_testbed()
errno
Revert commit 4b1ab11c244a0a488bb. Merely setting
$SYSTEMD_DEVICE_VERIFY_SYSFS
does not work for GI bindings. Instead, wrap fstatfs() and mangle the type to SYSFS_MAGIC if the path points into our mocked /sys. This satisfies udev.Fixes https://github.com/systemd/systemd/issues/23499