From 8d6fea0d5882aaf2cf170a7cecaf1ebf52fe88c260a072b577dd4c41286a04b8 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Mon, 6 Jan 2020 01:46:00 +0000 Subject: [PATCH] Accepting request 760525 from home:gary_lin:branches:security - Amend swtpm-adjust-seccomp-path.patch to add the missing seccomp paths - Adjust the conditional check of net-tools-deprecated for SLE15 and SLE15-SP1 OBS-URL: https://build.opensuse.org/request/show/760525 OBS-URL: https://build.opensuse.org/package/show/security/swtpm?expand=0&rev=2 --- swtpm-adjust-seccomp-path.patch | 45 ++++++++++++++------------------- swtpm.changes | 8 ++++++ swtpm.spec | 4 +-- 3 files changed, 29 insertions(+), 28 deletions(-) diff --git a/swtpm-adjust-seccomp-path.patch b/swtpm-adjust-seccomp-path.patch index 6f2bb55..859cf52 100644 --- a/swtpm-adjust-seccomp-path.patch +++ b/swtpm-adjust-seccomp-path.patch @@ -9,32 +9,25 @@ Signed-off-by: Gary Lin src/swtpm/swtpm_chardev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -diff --git a/src/swtpm/swtpm.c b/src/swtpm/swtpm.c -index 3ecbb7b..7f1010f 100644 ---- a/src/swtpm/swtpm.c -+++ b/src/swtpm/swtpm.c -@@ -51,7 +51,7 @@ - #include +Index: swtpm-0.2.0/src/swtpm/Makefile.am +=================================================================== +--- swtpm-0.2.0.orig/src/swtpm/Makefile.am ++++ swtpm-0.2.0/src/swtpm/Makefile.am +@@ -94,6 +94,7 @@ swtpm_CFLAGS = \ + $(HARDENING_CFLAGS) \ + $(GLIB_CFLAGS) \ + $(LIBFUSE_CFLAGS) \ ++ $(LIBSECCOMP_CFLAGS) \ + -DHAVE_SWTPM_CUSE_MAIN - #ifdef WITH_SECCOMP --# include -+# include - #endif + swtpm_LDADD = \ +@@ -101,7 +102,8 @@ swtpm_LDADD = \ + $(LIBFUSE_LIBS) \ + $(GLIB_LIBS) \ + $(GTHREAD_LIBS) \ +- $(LIBTPMS_LIBS) ++ $(LIBTPMS_LIBS) \ ++ $(LIBSECCOMP_LIBS) - #include -diff --git a/src/swtpm/swtpm_chardev.c b/src/swtpm/swtpm_chardev.c -index 6278621..c3d0a9f 100644 ---- a/src/swtpm/swtpm_chardev.c -+++ b/src/swtpm/swtpm_chardev.c -@@ -51,7 +51,7 @@ - #include + swtpm_cuse_DEPENDENCIES = $(privlib_LTLIBRARIES) - #ifdef WITH_SECCOMP --# include -+# include - #endif - - #include --- -2.22.0 - diff --git a/swtpm.changes b/swtpm.changes index b66006e..1fd5951 100644 --- a/swtpm.changes +++ b/swtpm.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Jan 3 01:52:45 UTC 2020 - Gary Ching-Pang Lin + +- Amend swtpm-adjust-seccomp-path.patch to add the missing seccomp + paths +- Adjust the conditional check of net-tools-deprecated for SLE15 + and SLE15-SP1 + ------------------------------------------------------------------- Thu Sep 5 08:00:27 UTC 2019 - Gary Ching-Pang Lin diff --git a/swtpm.spec b/swtpm.spec index 83949b3..51b33f1 100644 --- a/swtpm.spec +++ b/swtpm.spec @@ -41,12 +41,12 @@ BuildRequires: libtpms-devel BuildRequires: python3-Twisted BuildRequires: socat BuildRequires: tpm-tools -%if 0%{?suse_version} > 1500 +%if 0%{?suse_version} >= 1500 BuildRequires: net-tools-deprecated %endif Requires: tpm-tools Requires: trousers -%if 0%{?suse_version} > 1500 +%if 0%{?suse_version} >= 1500 Requires: net-tools-deprecated %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build