Date: Mon, 8 Jan 2024 12:17:54 GMT From: Gleb Popov <arrowd@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b228375db216 - main - security/tpm2-abrmd: Fix devd rules config. Message-ID: <202401081217.408CHsc3082558@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=b228375db216bf87b61b51b65f158648e54cbd6a commit b228375db216bf87b61b51b65f158648e54cbd6a Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2024-01-08 10:47:15 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2024-01-08 12:17:39 +0000 security/tpm2-abrmd: Fix devd rules config. It wasn't really changing the owner of /dev/tpm0 Sponsored by: Serenity Cybersecurity, LLC --- security/tpm2-abrmd/Makefile | 2 +- security/tpm2-abrmd/files/tpm2-abrmd-devd.conf | 7 +++++-- 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"; };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401081217.408CHsc3082558>