* [meta-security][PATCH 1/3] Updates tpm2-abrmd.default and fix indentation in tpm2-abrmd-init.sh
@ 2020-01-09 21:02 Daniel
0 siblings, 0 replies; only message in thread
From: Daniel @ 2020-01-09 21:02 UTC (permalink / raw)
To: Yocto Project Discussion
[-- Attachment #1: Type: text/plain, Size: 1582 bytes --]
The current version of tpm2-abrmd does not support
`--max-transient-objects` and `--fail-on-loaded-trans`.
With those arguments the start-stop-daemon in init script
will fail silently.
Also fix one line indentation to make it consistent.
Signed-off-by: Daniel Wang <daniel.wang@intusurg.com>
---
meta-tpm/recipes-tpm2/tpm2-abrmd/files/tpm2-abrmd-init.sh | 2 +-
meta-tpm/recipes-tpm2/tpm2-abrmd/files/tpm2-abrmd.default | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-tpm/recipes-tpm2/tpm2-abrmd/files/tpm2-abrmd-init.sh b/meta-tpm/recipes-tpm2/tpm2-abrmd/files/tpm2-abrmd-init.sh
index c8dfb7d..1b15bbb 100644
--- a/meta-tpm/recipes-tpm2/tpm2-abrmd/files/tpm2-abrmd-init.sh
+++ b/meta-tpm/recipes-tpm2/tpm2-abrmd/files/tpm2-abrmd-init.sh
@@ -45,7 +45,7 @@ case "${1}" in
start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/${NAME}.pid --user ${USER} --exec ${DAEMON}
RETVAL="$?"
- echo "$NAME."
+ echo "$NAME."
rm -f /var/run/${NAME}.pid
exit $RETVAL
;;
diff --git a/meta-tpm/recipes-tpm2/tpm2-abrmd/files/tpm2-abrmd.default b/meta-tpm/recipes-tpm2/tpm2-abrmd/files/tpm2-abrmd.default
index 987978a..b4b3c20 100644
--- a/meta-tpm/recipes-tpm2/tpm2-abrmd/files/tpm2-abrmd.default
+++ b/meta-tpm/recipes-tpm2/tpm2-abrmd/files/tpm2-abrmd.default
@@ -1 +1 @@
-DAEMON_OPTS="--tcti=device --logger=syslog --max-connections=20 --max-transient-objects=20 --fail-on-loaded-trans"
+DAEMON_OPTS="--tcti=device --logger=syslog --max-connections=20 --max-transients=20 --flush-all"
--
2.7.4
[-- Attachment #2: Type: text/html, Size: 2732 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-09 21:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-09 21:02 [meta-security][PATCH 1/3] Updates tpm2-abrmd.default and fix indentation in tpm2-abrmd-init.sh Daniel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.