9ae3c16f2d
tests: Pull more OutputChecker fixes
...
While debugging the g-s-d testsuite a few more issues in the
OutputChecker code came up. Pull in these fixes ensuring that EOF and
the read side FD are handled correctly.
2021-07-23 13:50:52 +02:00
f4995dcabe
tests: Pull OutputChecker fixes
...
Mark the thread as daemon. Also use poll and fix a wrong variable
reference.
2021-07-19 21:38:25 +00:00
8c0876ae49
Translated using Weblate (Korean)
...
Currently translated at 100.0% (60 of 60 strings)
Co-authored-by: simmon <simmon@nplob.com >
Translate-URL: https://translate.fedoraproject.org/projects/fprintd/fprintd/ko/
Translation: fprintd/fprintd
2021-07-16 22:04:35 +02:00
3a96b6f2f0
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (60 of 60 strings)
Co-authored-by: Rafael Fontenelle <rafaelff@gnome.org >
Translate-URL: https://translate.fedoraproject.org/projects/fprintd/fprintd/pt_BR/
Translation: fprintd/fprintd
2021-07-16 22:04:35 +02:00
688f9b0acf
Translated using Weblate (Swedish)
...
Currently translated at 100.0% (60 of 60 strings)
Co-authored-by: Anders Jonsson <anders.jonsson@norsjovallen.se >
Translate-URL: https://translate.fedoraproject.org/projects/fprintd/fprintd/sv/
Translation: fprintd/fprintd
2021-07-16 22:04:35 +02:00
5b9e237884
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (60 of 60 strings)
Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com >
Translate-URL: https://translate.fedoraproject.org/projects/fprintd/fprintd/tr/
Translation: fprintd/fprintd
2021-07-16 22:04:35 +02:00
8288c0efc7
Translated using Weblate (Ukrainian)
...
Currently translated at 100.0% (60 of 60 strings)
Co-authored-by: Yuri Chornoivan <yurchor@ukr.net >
Translate-URL: https://translate.fedoraproject.org/projects/fprintd/fprintd/uk/
Translation: fprintd/fprintd
2021-07-16 22:04:35 +02:00
0d2dbc6179
Switch to the Fedora weblate instance for translations
...
Closes : #78
2021-07-01 13:11:20 +02:00
b760a82ac6
Update for 1.92.0
v1.92.0
2021-07-01 13:06:08 +02:00
f398d09b23
device: Delete existing print in EnrollStart
...
gnome-control-center expects to be able to re-enroll an existing print
when calling EnrollStart without deleting it first. As such, implicitly
delete the existing print rather than throwing an error.
Ideally, we'll change the API, but we need to give API users time to
adjust to the world.
2021-07-01 12:59:11 +02:00
9ec1747b84
Revert "pam_fprintd: Just return a PAM_AUTH_ERROR on unknown errors"
...
This reverts commit ecf6b7c323 .
The idea of the commit was to make device failures less fatal to the
system. Unfortunately, we can fail quickly in this case, and returning
PAM_AUTH_ERR means that the user might run into a retry limit due to
this.
Go back to reporting PAM_AUTHINFO_UNAVAIL, it appears as the lesser evil
right now. Ideally we want to a way to tell the upper stack to retry
authentication whenever there is a good opportunity, but to not consider
it as an authentication failure.
2021-07-01 12:59:11 +02:00
6482e2dbd4
Update .po files and add .pot into git
2021-07-01 12:59:11 +02:00
ac9a1538bb
po: Update translations from transifex
2021-07-01 12:59:11 +02:00
7aecec1449
data: Restrict syscall usage of fprintd
...
fprintd only needs very few syscalls. Mainly normal IO operations and
ioctl for USB access. All of this is covered by @system-service, we
could likely restrict it quite a bit more though.
2021-06-29 21:10:59 +02:00
0f7340130e
data: Disallow fprintd to read kernel logs
2021-06-29 21:10:03 +02:00
fcd7e9bc76
data: Only allow access to USB and SPI devices
...
That is all that fprintd. Note that ProtectClock already restricts
device access and other device types need to be listed explicitly
because of this.
2021-06-29 20:48:16 +02:00
00629fc374
pam: Mark no-match error message as translatable
2021-06-25 16:07:53 +00:00
d7da04fa4b
tests: Check storage is cleared if device does not support listing
...
On the first enroll, the storage must be cleared. Check that this is the
case for the first enroll but not the second.
2021-06-25 16:56:49 +02:00
7f2b5fe7ff
device: Avoid clearing storage when we can garbage collect
...
If the device supports listing prints, then we can do more targeted
deletes once the storage runs out. As such, do not try to clear the
storage on first enroll (therefore allowing dual boot setups to work to
a limited degree).
2021-06-25 15:52:41 +02:00
f44233461f
device: Clear storage before enrolling the first print
...
Clear the device storage before we enroll the first print. At that
point, we know that the storage should be completely empty and we have
no way of deleting "garbage" prints later if the device does not support
listing prints.
2021-04-30 14:41:12 +02:00
9e8139e6d4
README: Add note on how to enable debugging
2021-04-19 16:17:43 +00:00
e8baf4c9a9
device: Switch to new fp_device_has_feature API
...
The old API has been deprecated.
2021-04-19 18:12:10 +02:00
3b787aa8d1
ci: Allow failing stable build
...
The libfprint version in rawhide is currently too old for master
fprintd.
2021-04-19 15:59:34 +00:00
4f4b0d5f11
tests/fprintd: Check that garbage collecting works on duplicated print
2021-04-02 00:22:16 +02:00
aae37304e5
tests/fprintd: Cleanup FPrintdVirtualStorageDeviceTests
...
Avoid repeating the same things multiple times
2021-04-02 00:22:16 +02:00
8869b8296f
tests/fprintd: Check an error is thrown if trying to re-enroll a finger
2021-04-02 00:22:16 +02:00
bc55deab2a
device: Do not allow enrolling a finger that is already enrolled
...
This makes little sense. Users should delete the finger before trying to
enroll the same one again. So throw an error at them from EnrollStart
right away.
Fixes : #95
2021-04-02 00:22:16 +02:00
41086ac4c6
tests/fprintd: Test enroll multiple prints with duplicates
2021-04-02 00:22:16 +02:00
4e075ba491
tests/fprintd: Repeat enroll tests with virtual device with no storage
...
No storage-device does not support identification so we need to try this
case as well
2021-04-01 23:09:30 +02:00
e8622b3e63
device: Support enrolling on devices with no identification support
2021-04-01 23:09:29 +02:00
5785dc65b4
device: Add duplicate checking during enroll
...
Always do an identify step before starting an enroll. If we find an
existing print, delete or throw an error depending on what is
appropriate.
Doing this ensures that we should not get duplicate prints system wide.
This means we will be able to identify the user that is trying to log
in. But more importantly, we need to do these checks for MoC devices,
which always run "identify" against all device stored prints rather than
the passed gallery.
2021-04-01 22:47:42 +02:00
b7b91e77bb
dbus: Add new enroll-duplicate error code
...
This will be returned if the print has alread been enrolled on the
system.
2021-04-01 16:21:22 +02:00
084e5bfafd
tests/dbusmock/polkitd: Remove unwanted method, from a fprintd copy-paste
2021-03-23 19:00:33 +01:00
d53eaa7d89
tests/dbusmock/polkitd: Do not look for mock object again
...
We already get it as the parameter of the load function, so no need
to find it
2021-03-23 19:00:23 +01:00
29a83ec49a
tests/dbusmock/fprintd: Do not redefine device object methods multiple times
...
They will picked anyways by python dbusmock
2021-03-23 18:59:22 +01:00
a5ff42394e
main: De-init the storage when main loop is over
2021-03-03 19:51:07 +01:00
0af8cf1d56
tests/fprintd: Use intermediate timeouts based on default setup
2021-03-03 19:51:07 +01:00
3a05589685
utils/delete: Add ability to delete single user fingerprints by finger name
...
Each user can now be followed by an `-f`/`--finger` parameter that when
available will be used to delete a single fingerprint for the user.
Add tests
2021-03-03 19:51:07 +01:00
8485985ed3
delete: Use GOptionContext to handle help
2021-03-03 19:50:44 +01:00
bb722a0373
tests/fprintd: Add tests for 'verify' utility
2021-03-03 19:49:07 +01:00
022ee1a4c5
tests/fprintd: Add test for the enroll utility using virtual device commands
2021-03-03 19:49:07 +01:00
8d14af379f
utils/verify: Terminate with EXIT_FAILURE when enrollment failed
2021-03-03 19:49:07 +01:00
9a13293818
utils/enroll: Terminate with EXIT_FAILURE when enrollment failed
2021-03-03 19:49:07 +01:00
c66d5d0fa6
utils/enroll: Fix typo on error
2021-03-03 19:49:07 +01:00
aba0f0a714
tests/fprintd: Add test for device error during Claim
2021-03-03 19:49:07 +01:00
b1a218d56a
tests/fprintd: Add tests to check errors when using the 'delete' tool
2021-03-03 19:49:07 +01:00
59c2dc5df2
tests/fprintd: Use output checker in FPrintdUtilsTest
2021-03-03 19:49:07 +01:00
f4d2e905bd
tests/fprintd: Use storage device for more tests
...
It's quicker to use for various operations, so better to use it
2021-03-03 19:49:07 +01:00
6f355797f8
device: Throw a NoEnrolledPrints error if trying to delete a device with no prints
...
Adjust tests accordingly
2021-03-03 19:49:07 +01:00
4b246d3ce2
utils/delete: Use proper error string on deletion
2021-03-03 19:49:07 +01:00