]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/home/homectl-fido2.h
homectl: store FIDO2 up/uv/clientPin fields in user records too
authorLennart Poettering <lennart@poettering.net>
Fri, 28 May 2021 16:18:54 +0000 (18:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 1 Jun 2021 11:31:53 +0000 (13:31 +0200)
commit17e7561a973495992014dd102135f15eb808ae01
tree2ee7ecb59582619e814b9662171f75374521d7ea
parent7dba77a67ed334d9336b89371b0601661609d277
homectl: store FIDO2 up/uv/clientPin fields in user records too

This catches up homed's FIDO2 support with cryptsetup's: we'll now store
the uv/up/clientPin configuration at enrollment in the user record JSON
data, and use it when authenticating with it.

This also adds explicit "uv" support: we'll only allow it to happen when
the client explicity said it's OK. This is then used by clients to print
a nice message suggesting "uv" has to take place before retrying
allowing it this time. This is modelled after the existing handling for
"up".
15 files changed:
docs/USER_RECORD.md
man/homectl.xml
src/home/homectl-fido2.c
src/home/homectl-fido2.h
src/home/homectl.c
src/home/homed-home.c
src/home/homework-fido2.c
src/home/homework.c
src/home/pam_systemd_home.c
src/home/user-record-util.c
src/home/user-record-util.h
src/libsystemd/sd-bus/bus-common-errors.c
src/libsystemd/sd-bus/bus-common-errors.h
src/shared/user-record.c
src/shared/user-record.h