- 05 Feb, 2020 2 commits
-
-
Reuse the generated dbus interface .xml files from fprintd to avoid unnecessary copies.
-
Don't hardcode the libtool specific build path in the configuration file, but in the build declaration instead.
-
- 04 Feb, 2020 21 commits
-
-
Like for the fprintd test, run the tests under valgrind if the `VALGRIND` environment variable is set, and use the contents of the variable as the path to the suppression file.
-
It's marked as a signed integer, not an unsigned one in the API.
-
-
-
-
-
-
Use the device session data to store all the informations we care about while a device is claimed, and make its cleanup easier. Keep just one instance of the current context, given we use it only during claim and release, and those are mutually exclusive operations.
-
-
-
-
Allocate SessionData using g_malloc(). There are no benefits to using GSlice for a seldom used structure. This also allows use to use g_clear_pointer() to free the struct.
-
-
Add the missing chain-up on finalize().
-
-
Bastien Nocera authored
Closes: #3
-
Bastien Nocera authored
-
Bastien Nocera authored
Don't use return messages for D-Bus calls when we're not interested in those return values.
-
Bastien Nocera authored
If we exited early from the loop, we need to make sure to free() this struct member.
-
Bastien Nocera authored
We need to make sure that the max_tries variable isn't decremented further when we have success in the verification loop. Add missing break to do that. Fixes: affffaf1 Closes: #40
-
Bastien Nocera authored
Exhaust all the tries (minus 1) before having a match on the last try. This should not throw a warning.
-
- 24 Jan, 2020 6 commits
-
-
Bastien Nocera authored
As used in the dist tarball.
-
Bastien Nocera authored
Closes: #24
-
Bastien Nocera authored
-
Bastien Nocera authored
-
Bastien Nocera authored
Remove "nodelete" linker flag now that we use sd-bus and not dbus-glib, so that libraries that pam_fprintd links to can be unloaded. This was added because GLib's type system expects to be initialised once and only once per process, and re-loading this type system when it had already been initialised caused crashes.
-
Bastien Nocera authored
This will catch problems with GLib being unloaded when the PAM module is unloaded, which would have crashed when using dbus-glib. This serves as a test for #2 Closes: #2
-
- 23 Jan, 2020 11 commits
-
-
Bastien Nocera authored
-
Bastien Nocera authored
-
Bastien Nocera authored
Support debug=[on|off|true|false|1|0] as an option in addition to "debug".
-
Bastien Nocera authored
-
Bastien Nocera authored
-
Bastien Nocera authored
-
Bastien Nocera authored
-
Bastien Nocera authored
-
Bastien Nocera authored
Should prove useful debugging the PAM module if we need it.
-
Bastien Nocera authored
This pam plugin never used GDBus because it transparently uses threads which do not work well with a lot of PAM applications. But even settling on the "still better to use than plain dbus library" dbus-glib wasn't without problems, as any use or initialisation of GIO sockets would modify signal handler for signals such as SIGPIPE (see gio/gsocket.c). Many years later, sd-bus is a more modern alternative to the bare dbus library with a better API. This includes: - Removing use of gboolean, guint, g_new0() and many glib string helpers - Simplifying debug logging - Marking user-facing messages to be translated
-
Bastien Nocera authored
To simplify the options parsing.
-