aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2024-01-08 10:47:15 +0000
committerGleb Popov <arrowd@FreeBSD.org>2024-01-08 12:17:39 +0000
commitb228375db216bf87b61b51b65f158648e54cbd6a (patch)
treea8e18e5d246be66e1e6cdb9354c12450cad67e5a
parenta4ed291bbda243716de326d94cd13e2ecd52b938 (diff)
downloadports-b228375db216bf87b61b51b65f158648e54cbd6a.tar.gz
ports-b228375db216bf87b61b51b65f158648e54cbd6a.zip
security/tpm2-abrmd: Fix devd rules config.
It wasn't really changing the owner of /dev/tpm0 Sponsored by: Serenity Cybersecurity, LLC
-rw-r--r--security/tpm2-abrmd/Makefile2
-rw-r--r--security/tpm2-abrmd/files/tpm2-abrmd-devd.conf7
2 files changed, 6 insertions, 3 deletions
diff --git a/security/tpm2-abrmd/Makefile b/security/tpm2-abrmd/Makefile
index f74fd0c9507e..8dc04e65c8ab 100644
--- a/security/tpm2-abrmd/Makefile
+++ b/security/tpm2-abrmd/Makefile
@@ -1,6 +1,6 @@
PORTNAME= tpm2-abrmd
DISTVERSION= 3.0.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= https://github.com/tpm2-software/tpm2-abrmd/releases/download/${DISTVERSION}/
diff --git a/security/tpm2-abrmd/files/tpm2-abrmd-devd.conf b/security/tpm2-abrmd/files/tpm2-abrmd-devd.conf
index 27f804d89fb9..f7f4091a25a5 100644
--- a/security/tpm2-abrmd/files/tpm2-abrmd-devd.conf
+++ b/security/tpm2-abrmd/files/tpm2-abrmd-devd.conf
@@ -1,6 +1,9 @@
# Allow members of _tss group to access tpm device
notify 100 {
- device-name "tpm0";
- action "chgrp _tss /dev/$cdev; chmod g+rw /dev/$cdev";
+ match "system" "DEVFS";
+ match "subsystem" "CDEV";
+ match "type" "CREATE";
+ match "cdev" "tpm[0-9]+";
+ action "chgrp _tss /dev/tpm0; chmod g+rw /dev/tpm0";
};