Commit graph

185 commits

Author SHA1 Message Date
Jonatan Steuernagel
a73bd66ef3
Change all write paths to /var/run/python-validity
This is to ensure functionality of the python-validity
on systems who restrict write access to the /usr directory,
like Fedora Silverblue.
2023-04-18 16:46:45 +02:00
Viktor Dragomiretskyy
ae76d37821 Use a different partition table + signature for 0090 devices. 2022-06-15 18:26:44 +12:00
Viktor Dragomiretskyy
20bcc125f6 0090 devices are now patched against CVE-2019-18618 as well. 2022-06-12 16:14:58 +12:00
Viktor Dragomiretskyy
97c47fdc37 Bump the python package version 2022-06-03 10:23:13 +12:00
Viktor Dragomiretskyy
da5ff31e0a Release 0.14 2022-06-03 08:29:54 +12:00
Viktor Dragomiretskyy
d8d88b4f37 Retry establishing TLS on Resume in case if it was already established. 2022-06-03 08:25:59 +12:00
uunicorn
194c055445
Merge pull request #120 from baschi29/fprint_api_fix
Comply with fprint API when returning enrolled fingers
2022-04-21 09:23:10 +12:00
baschi29
6be68ec31c
newline at end of file 2022-04-20 22:49:16 +02:00
baschi29
ace2063289
remove unused code 2022-04-20 22:39:47 +02:00
baschi29
0577e82c7f
ANSI381 naming if fprint names are not specified 2022-04-20 22:29:52 +02:00
baschi29
14df228ba6
user fprint api names instead of winbio 2022-04-20 22:09:05 +02:00
Viktor Dragomiretskyy
c94c243bce Bump to 0.13 2021-09-26 13:24:11 +13:00
uunicorn
076d4df17c
Merge pull request #94 from hmatrjp/patch-1
update dbus-loader: Remove Loader from safe_load()
2021-08-14 11:41:49 +12:00
Takeshi HAMASAKI
032cde778e
update dbus-loader: Remove Loader from safe_load()
As I commented on the commit c0bf88e, c0bf88ea05
python3-validity.service does not start, at least on Debian buster, since
safe_load() does not have arg Loader on its prototype.
Removing Loader here,
config = yaml.safe_load(configfd)
makes it back to normal starting.
2021-08-14 08:36:06 +09:00
uunicorn
5bf6b2bd10
Merge pull request #93 from vowstar/patch-1
Unsafe load() call disabled by Gentoo. See bug #659348
2021-08-03 11:16:45 +12:00
Huang Rui
c0bf88ea05
Unsafe load() call disabled by Gentoo. See bug #659348
```
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
2021-08-02 20:49:31 +08:00
uunicorn
969f56f2a8
Merge pull request #50 from Tomcat-42/master
Add waking up from suspend error instructions on README
2021-06-11 15:35:55 +12:00
uunicorn
a9b1bc07f3
Merge pull request #52 from amateusz/master
suppress dbus lib  warnings + warn against no indent in config
2021-06-11 15:34:12 +12:00
uunicorn
9031c1ae90
Merge pull request #82 from Tigro/patch-1
added Fedora installation items
2021-06-11 15:33:01 +12:00
Arkady Shane
5623e12387
fix typo 2021-06-04 15:27:19 +03:00
Arkady Shane
d5c1895506
added Fedora installation items 2021-05-14 18:18:23 +03:00
uunicorn
e8521aa151
Merge pull request #65 from mrdanielps/9d
Add support for 138a:009d
2020-12-29 14:34:39 +13:00
mrdanielps
a3387549f0 Add support for 138a:009d 2020-12-20 17:09:58 +01:00
uunicorn
331474fd76
Merge pull request #53 from veitw/rpm-packaging
RPM packaging (Fedora) and SELinux module
2020-11-14 16:13:38 +13:00
Veit Wahlich
e6a7713d07 RPM packaging (Fedora) and SELinux module
* added specfile for rpmbuild
 * added missing [Install] unit to systemd service unit
 * added SELinux module to grant python-validity the required permissions
2020-11-14 00:16:27 +01:00
Mateusz Grzywacz
c743785162 suppress dbus lib warnings + warn against no indent in config 2020-11-10 05:11:39 +01:00
Pablo Hugen
906d171ce8 Add instructions for solving fingerprint not working after resume
As pointed by #39. Also, add a table of contents.
2020-10-26 08:41:02 -03:00
uunicorn
fcd862dfdf
Merge pull request #48 from kakawait/patch-1
Update setup.py version to match latest version
2020-10-18 09:12:40 +13:00
Thibaud Lepretre
1b14986b3e
Update setup.py version to match latest versoin 2020-10-17 15:43:15 +02:00
Viktor Dragomiretskyy
42df399646 Bump to 0.12 2020-10-17 17:52:44 +13:00
Viktor Dragomiretskyy
92eab67353 Implement Suspend/Resume methods to reset the TLS state 2020-10-17 17:50:18 +13:00
Viktor Dragomiretskyy
df3f802104 Bump to 0.11 2020-09-10 21:11:03 +12:00
uunicorn
707f606c7f
Merge pull request #36 from Titaniumtown/master
add installation instructions for Arch Linux
2020-09-02 10:45:35 +12:00
Simon Gardling
7cee93afc6 add installation instructions for Arch Linux 2020-09-01 12:11:01 -04:00
uunicorn
42669765de
Merge pull request #30 from alteriks/suspend-then-hibernate
Update python3-validity-suspend-restart.service
2020-08-19 10:24:49 +12:00
uunicorn
0369d960b3
Merge pull request #29 from VorpalBlade/feature/verify_hash
Implements uunicorn/python-validity#26: Verify hash of downloaded drivers
2020-08-19 10:20:23 +12:00
alteriks
151a076d8c
Update python3-validity-suspend-restart.service
Systemd uses additional target corelated to resume - suspend-then-hibernate.target
2020-08-18 21:54:42 +02:00
Arvid Norlander
367df46166
Implements uunicorn/python-validity#26: Verify hash of downloaded drivers. 2020-08-18 17:00:38 +02:00
uunicorn
64438d613a
Merge pull request #25 from VorpalBlade/feature/fix-todo-validity-sensors-firmware
Consolidate definitions related to firmware files.
2020-08-08 23:39:54 +12:00
Arvid Norlander
1078c3873f
Consolidate definitions related to firmware files.
This fixes the TODO comments in validity-sensors-firmware
2020-08-07 12:58:01 +02:00
uunicorn
6a7ae704e7
Merge pull request #24 from VorpalBlade/feature/code-cleanup
Major code cleanup:
2020-08-06 22:41:07 +12:00
Arvid Norlander
271f17c8d6
Restore imports in interactive environment prototype. 2020-08-06 12:38:14 +02:00
Arvid Norlander
4417e49612
New reformatting of code after rebase and changes. 2020-08-06 11:55:22 +02:00
Arvid Norlander
9f116547d0
Simplify blob design 2020-08-06 11:48:19 +02:00
Arvid Norlander
844c5100ef
Add typing information 2020-08-06 11:48:19 +02:00
Arvid Norlander
ee6fc3cdd8
Fix potential use of variable before initialisation. 2020-08-06 11:48:19 +02:00
Arvid Norlander
6a5a32d29f
Various small and easy cleanup found by inspection in PyCharm 2020-08-06 11:48:19 +02:00
Arvid Norlander
a17ad52102
Use optimise imports in PyCharm for cleanup.
This sorts imports into sections:
* From standard library
* From other libraries
* From the current project

Each section is sorted alphabetically.
2020-08-06 11:48:19 +02:00
Arvid Norlander
9a5b045378
Get rid of star imports.
These are dangerous as you will import not only the functions defined
in the other module but also all of it's imports! This makes automated
cleanups brittle.
2020-08-06 11:46:19 +02:00
Arvid Norlander
9dc0c14aed
Automated formatting with YAPF.
PEP8 settings are used except the low 80 column limit has be increased
to a more reasonable 100 columns.
2020-08-06 11:46:19 +02:00