summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Payet <monwarez@mailoo.org>2022-10-26 14:10:43 +0100
committerNuno Teixeira <eduardo@FreeBSD.org>2022-10-26 14:12:12 +0100
commit0674c92121aa41f60b82c3a8ebf15503b85538c1 (patch)
treef5ac1ec98b65b4f024393e5723052eaa5c42ad2f
parentsecurity/py-keyrings.alt: Update to 4.2.0 (diff)
security/u2f-devd: Add support for Nitrokey 3
- submitter becomes maintainer PR: 267337
-rw-r--r--security/u2f-devd/Makefile4
-rw-r--r--security/u2f-devd/files/u2f.conf16
2 files changed, 18 insertions, 2 deletions
diff --git a/security/u2f-devd/Makefile b/security/u2f-devd/Makefile
index dcf7e088e144..8619cb6bb310 100644
--- a/security/u2f-devd/Makefile
+++ b/security/u2f-devd/Makefile
@@ -1,11 +1,11 @@
PORTNAME= u2f-devd
PORTVERSION= 1.1.10
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= security
MASTER_SITES= #
DISTFILES= #
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= monwarez@mailoo.org
COMMENT= Devd hotplug rules for Universal 2nd Factor (U2F) tokens
LICENSE= BSD2CLAUSE
diff --git a/security/u2f-devd/files/u2f.conf b/security/u2f-devd/files/u2f.conf
index bde74fd6bf7a..1eea25ded39b 100644
--- a/security/u2f-devd/files/u2f.conf
+++ b/security/u2f-devd/files/u2f.conf
@@ -194,6 +194,22 @@ attach 100 {
action "chgrp u2f /dev/$device-name; chmod g+rw /dev/$device-name";
};
+# Nitrokey 3
+notify 100 {
+ match "system" "USB";
+ match "subsystem" "DEVICE";
+ match "type" "ATTACH";
+ match "vendor" "0x20a0";
+ match "product" "0x42b2";
+ action "chgrp u2f /dev/$cdev; chmod g+rw /dev/$cdev";
+};
+
+attach 100 {
+ match "vendor" "0x20a0";
+ match "product" "0x42b2";
+ action "chgrp u2f /dev/$device-name; chmod g+rw /dev/$device-name";
+};
+
# Google Titan U2F
notify 100 {
match "system" "USB";