summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2024-01-08 13:07:59 +0300
committerGleb Popov <arrowd@FreeBSD.org>2024-01-08 15:17:38 +0300
commita4ed291bbda243716de326d94cd13e2ecd52b938 (patch)
treeb285ef866947d99260019ba835efe01acbca944a
parentsecurity/tpm2-tools: Enable Feature API and corresponding tools. (diff)
security/tpm2-abrmd: Fix DBus config patch to cover more clauses.
Sponsored by: Serenity Cybersecurity, LLC
-rw-r--r--security/tpm2-abrmd/Makefile1
-rw-r--r--security/tpm2-abrmd/files/patch-dist_tpm2-abrmd.conf16
2 files changed, 16 insertions, 1 deletions
diff --git a/security/tpm2-abrmd/Makefile b/security/tpm2-abrmd/Makefile
index 81da6fe1a3e7..f74fd0c9507e 100644
--- a/security/tpm2-abrmd/Makefile
+++ b/security/tpm2-abrmd/Makefile
@@ -1,5 +1,6 @@
PORTNAME= tpm2-abrmd
DISTVERSION= 3.0.0
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= https://github.com/tpm2-software/tpm2-abrmd/releases/download/${DISTVERSION}/
diff --git a/security/tpm2-abrmd/files/patch-dist_tpm2-abrmd.conf b/security/tpm2-abrmd/files/patch-dist_tpm2-abrmd.conf
index 10d8e55d7a19..755942458792 100644
--- a/security/tpm2-abrmd/files/patch-dist_tpm2-abrmd.conf
+++ b/security/tpm2-abrmd/files/patch-dist_tpm2-abrmd.conf
@@ -1,4 +1,4 @@
---- dist/tpm2-abrmd.conf.orig 2019-08-27 23:12:36 UTC
+--- dist/tpm2-abrmd.conf.orig 2022-05-09 15:39:53 UTC
+++ dist/tpm2-abrmd.conf
@@ -2,7 +2,7 @@
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
@@ -9,3 +9,17 @@
<allow own="com.intel.tss2.Tabrmd"/>
</policy>
<policy user="root">
+@@ -17,11 +17,11 @@
+ <allow send_destination="com.intel.tss2.Tabrmd"/>
+ <allow receive_sender="com.intel.tss2.Tabrmd"/>
+ </policy>
+- <policy user="tss">
++ <policy user="_tss">
+ <allow send_destination="com.intel.tss2.Tabrmd"/>
+ <allow receive_sender="com.intel.tss2.Tabrmd"/>
+ </policy>
+- <policy group="tss">
++ <policy group="_tss">
+ <allow send_destination="com.intel.tss2.Tabrmd"/>
+ <allow receive_sender="com.intel.tss2.Tabrmd"/>
+ </policy>