diff --git a/man/systemd-cryptenroll.xml b/man/systemd-cryptenroll.xml index ab7bed40e1..83f8b2d8a1 100644 --- a/man/systemd-cryptenroll.xml +++ b/man/systemd-cryptenroll.xml @@ -720,8 +720,9 @@ Show a list of candidate block devices this command may operate on. Specifically, - this enumerates block devices currently present that contain a LUKS superblock, and shows their device - node paths along with any of their symlinks. + this enumerates block devices currently present that contain a LUKS superblock, and shows their + device node paths along with any of their symlinks. The devices must implement the + extension to be useable. diff --git a/src/shared/libfido2-util.c b/src/shared/libfido2-util.c index d19018b331..ec5235860c 100644 --- a/src/shared/libfido2-util.c +++ b/src/shared/libfido2-util.c @@ -1124,7 +1124,7 @@ int fido2_list_devices(void) { goto finish; } - t = table_new("path", "manufacturer", "product"); + t = table_new("path", "manufacturer", "product", "compatible"); if (!t) { r = log_oom(); goto finish; @@ -1143,14 +1143,14 @@ int fido2_list_devices(void) { r = check_device_is_fido2_with_hmac_secret(sym_fido_dev_info_path(entry)); if (r < 0) goto finish; - if (!r) - continue; + bool compatible = r > 0; r = table_add_many( t, TABLE_PATH, sym_fido_dev_info_path(entry), TABLE_STRING, sym_fido_dev_info_manufacturer_string(entry), - TABLE_STRING, sym_fido_dev_info_product_string(entry)); + TABLE_STRING, sym_fido_dev_info_product_string(entry), + TABLE_BOOLEAN_CHECKMARK, compatible); if (r < 0) { table_log_add_error(r); goto finish;