summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-04-02 16:08:40 +0000
committerArmin Kuster <akuster808@gmail.com>2021-04-02 09:09:54 -0700
commit901478bfdc6315a1f207114b3a259b069defe0a3 (patch)
tree33dbb5ed5c1f0e6bf869875f38ccda4cb70c0afb
parente70a97b5702ce4153a5159f16d7b88f360c3b3ec (diff)
downloadmeta-security-901478bfdc6315a1f207114b3a259b069defe0a3.tar.gz
swtpm: fix check for tscd deamon on host
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch26
-rw-r--r--meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb1
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch b/meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch
new file mode 100644
index 0000000..fc5943e
--- /dev/null
+++ b/meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch
@@ -0,0 +1,26 @@
1Don't check for tscd deamon on host.
2
3Upstream-Status: OE Specific
4
5Signed-off-by: Armin Kuster <akuster808@gmail.com>
6
7Index: git/configure.ac
8===================================================================
9--- git.orig/configure.ac
10+++ git/configure.ac
11@@ -179,14 +179,7 @@ AC_SUBST([LIBTPMS_LIBS])
12 AC_CHECK_LIB(c, clock_gettime, LIBRT_LIBS="", LIBRT_LIBS="-lrt")
13 AC_SUBST([LIBRT_LIBS])
14
15-AC_PATH_PROG([TCSD], tcsd)
16-if test "x$TCSD" = "x"; then
17- have_tcsd=no
18- AC_MSG_WARN([tcsd could not be found; typically need it for tss user account and tests])
19-else
20- have_tcsd=yes
21-fi
22-AM_CONDITIONAL([HAVE_TCSD], test "$have_tcsd" != "no")
23+have_tcsd=no
24
25 dnl We either need netstat (more common across systems) or 'ss' for test cases
26 AC_PATH_PROG([NETSTAT], [netstat])
diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb b/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb
index ab77196..caf99e8 100644
--- a/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb
+++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb
@@ -12,6 +12,7 @@ DEPENDS_append = " tpm-tools-native expect-native socat-native python3-pip-nativ
12SRCREV = "e59c0c1a7b4c8d652dbb280fd6126895a7057464" 12SRCREV = "e59c0c1a7b4c8d652dbb280fd6126895a7057464"
13SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.5 \ 13SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.5 \
14 file://ioctl_h.patch \ 14 file://ioctl_h.patch \
15 file://oe_configure.patch \
15 " 16 "
16PE = "1" 17PE = "1"
17 18