uunicorn / python-validity

Validity fingerprint sensor prototype
MIT License
995 stars 83 forks source link

Unsafe load() call disabled by Gentoo. See bug #659348 #93

Closed vowstar closed 3 years ago

vowstar commented 3 years ago
Aug 02 20:42:54 t480 dbus-service[60937]: Traceback (most recent call last):
Aug 02 20:42:54 t480 dbus-service[60937]:   File "/usr/lib/python-validity/dbus-service", line 307, in <module>
Aug 02 20:42:54 t480 dbus-service[60937]:     main()
Aug 02 20:42:54 t480 dbus-service[60937]:   File "/usr/lib/python-validity/dbus-service", line 245, in main
Aug 02 20:42:54 t480 dbus-service[60937]:     config = yaml.load(configfd)
Aug 02 20:42:54 t480 dbus-service[60937]:   File "/usr/lib/python3.9/site-packages/yaml/__init__.py", line 109, in load
Aug 02 20:42:54 t480 dbus-service[60937]:     raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
Aug 02 20:42:54 t480 dbus-service[60937]: RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348

Relevant Gentoo bug report https://bugs.gentoo.org/659348

Replacing yaml.load() calls with yaml.safe_load() should fix it

uunicorn commented 3 years ago

Thanks!