Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package swtpm for openSUSE:Factory checked in at 2023-09-26 22:00:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/swtpm (Old) and /work/SRC/openSUSE:Factory/.swtpm.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "swtpm" Tue Sep 26 22:00:32 2023 rev:17 rq:1111638 version:0.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/swtpm/swtpm.changes 2023-07-06 18:27:59.910897339 +0200 +++ /work/SRC/openSUSE:Factory/.swtpm.new.1770/swtpm.changes 2023-09-26 22:14:29.160188903 +0200 @@ -1,0 +2,15 @@ +Sat Sep 16 10:10:45 UTC 2023 - Marcus Meissner <meiss...@suse.com> + +- Update to version 0.8.1: + - swtpm: + - Restore logging to stderr on log open failure + - swtpm_setup: + - Exit with '0' upon --version rather than '1'. + - Initialized @argv in get_swtpm_capabilities() + - swtpm_localca: + - Add missing NULL option to end of array + - SELinux: + - Add rules for user_tpm_t:sockfile to allow unlink + - Add rules for sock_file on user_tmp_t + +------------------------------------------------------------------- Old: ---- swtpm-0.8.0.tar.gz New: ---- swtpm-0.8.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ swtpm.spec ++++++ --- /var/tmp/diff_new_pack.mk1wL2/_old 2023-09-26 22:14:30.480236682 +0200 +++ /var/tmp/diff_new_pack.mk1wL2/_new 2023-09-26 22:14:30.480236682 +0200 @@ -30,7 +30,7 @@ %define modulename2 swtpm_svirt %define modulename3 swtpmcuse Name: swtpm -Version: 0.8.0 +Version: 0.8.1 Release: 0 Summary: Software TPM emulator License: BSD-3-Clause ++++++ swtpm-0.8.0.tar.gz -> swtpm-0.8.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/swtpm-0.8.0/CHANGES new/swtpm-0.8.1/CHANGES --- old/swtpm-0.8.0/CHANGES 2022-11-10 18:24:08.000000000 +0100 +++ new/swtpm-0.8.1/CHANGES 2023-08-15 19:23:18.000000000 +0200 @@ -1,5 +1,18 @@ CHANGES - changes for swtpm +version 0.8.1: + - swtpm: + - Restore logging to stderr on log open failure + - swtpm_setup: + - Exit with '0' upon --version rather than '1'. + - Initialized @argv in get_swtpm_capabilities() + - swtpm_localca: + - Add missing NULL option to end of array + - SELinux: + - Add rules for user_tpm_t:sockfile to allow unlink + - Add rules for sock_file on user_tmp_t + - debian: Allow apparmor access to qemu session bus swtpm files + version 0.8.0: - swtpm: - Implement release-lock-outgoing parameter for --migration option diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/swtpm-0.8.0/configure.ac new/swtpm-0.8.1/configure.ac --- old/swtpm-0.8.0/configure.ac 2022-11-10 18:24:08.000000000 +0100 +++ new/swtpm-0.8.1/configure.ac 2023-08-15 19:23:18.000000000 +0200 @@ -23,7 +23,7 @@ # This file is derived from tpm-tool's configure.in. # -AC_INIT([swtpm],[0.8.0]) +AC_INIT([swtpm],[0.8.1]) AC_PREREQ([2.69]) AC_CONFIG_SRCDIR(Makefile.am) AC_CONFIG_HEADERS([config.h]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/swtpm-0.8.0/debian/changelog new/swtpm-0.8.1/debian/changelog --- old/swtpm-0.8.0/debian/changelog 2022-11-10 18:24:08.000000000 +0100 +++ new/swtpm-0.8.1/debian/changelog 2023-08-15 19:23:18.000000000 +0200 @@ -1,3 +1,9 @@ +swtpm (0.8.1) RELEASED; urgency=medium + + * Stable release + + -- Stefan Berger <stef...@linux.ibm.com> Tue, 15 Aug 2023 09:00:00 -0500 + swtpm (0.8.0) RELEASED; urgency=medium * Stable release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/swtpm-0.8.0/debian/usr.bin.swtpm new/swtpm-0.8.1/debian/usr.bin.swtpm --- old/swtpm-0.8.0/debian/usr.bin.swtpm 2022-11-10 18:24:08.000000000 +0100 +++ new/swtpm-0.8.1/debian/usr.bin.swtpm 2023-08-15 19:23:18.000000000 +0200 @@ -29,8 +29,10 @@ owner @{HOME}/** rwk, owner /var/lib/libvirt/swtpm/** rwk, /run/libvirt/qemu/swtpm/*.sock rwk, + owner /run/user/[0-9]*/libvirt/qemu/run/swtpm/*.sock rwk, owner /var/log/swtpm/libvirt/qemu/*.log rwk, owner /run/libvirt/qemu/swtpm/*.pid rwk, + owner /run/user/[0-9]*/libvirt/qemu/run/swtpm/*.pid rwk, owner /dev/vtpmx rw, owner /etc/nsswitch.conf r, owner /var/lib/swtpm/** rwk, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/swtpm-0.8.0/src/selinux/swtpm_svirt.te new/swtpm-0.8.1/src/selinux/swtpm_svirt.te --- old/swtpm-0.8.0/src/selinux/swtpm_svirt.te 2022-11-10 18:24:08.000000000 +0100 +++ new/swtpm-0.8.1/src/selinux/swtpm_svirt.te 2023-08-15 19:23:18.000000000 +0200 @@ -15,7 +15,7 @@ #============= svirt_t ============== allow svirt_t virtd_t:fifo_file { read write }; allow svirt_t virtd_t:process sigchld; -allow svirt_t user_tmp_t:sock_file { create setattr }; +allow svirt_t user_tmp_t:sock_file { create setattr unlink }; allow svirt_t swtpm_exec_t:file { entrypoint map }; # libvirt specific rules needed on F28 allow svirt_t virtd_t:unix_stream_socket { read write getopt getattr accept }; @@ -25,9 +25,10 @@ allow svirt_t virt_var_run_t:sock_file { create setattr }; allow svirt_tcg_t virtd_t:fifo_file { write read }; -allow svirt_tcg_t virt_var_run_t:sock_file { create setattr }; +allow svirt_tcg_t virt_var_run_t:sock_file { create setattr unlink }; allow svirt_tcg_t virt_var_run_t:file { create getattr open read unlink write }; allow svirt_tcg_t virt_var_run_t:dir { write add_name remove_name }; allow svirt_tcg_t swtpm_exec_t:file { entrypoint map }; +allow svirt_tcg_t user_tmp_t:sock_file { create setattr unlink }; # libvirt specific rules needed on F28 allow svirt_tcg_t virtd_t:unix_stream_socket { read write getopt getattr accept }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/swtpm-0.8.0/src/swtpm/logging.c new/swtpm-0.8.1/src/swtpm/logging.c --- old/swtpm-0.8.0/src/swtpm/logging.c 2022-11-10 18:24:08.000000000 +0100 +++ new/swtpm-0.8.1/src/swtpm/logging.c 2023-08-15 19:23:18.000000000 +0200 @@ -91,8 +91,10 @@ } logfd = open(filename, flags, S_IRUSR|S_IWUSR); - if (logfd < 0) + if (logfd < 0) { + logfd = CONSOLE_LOGGING; return -1; + } log_prefix_clear(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/swtpm-0.8.0/src/swtpm_localca/swtpm_localca.c new/swtpm-0.8.1/src/swtpm_localca/swtpm_localca.c --- old/swtpm-0.8.0/src/swtpm_localca/swtpm_localca.c 2022-11-10 18:24:08.000000000 +0100 +++ new/swtpm-0.8.1/src/swtpm_localca/swtpm_localca.c 2023-08-15 19:23:18.000000000 +0200 @@ -585,6 +585,7 @@ {"allow-signing", no_argument, NULL, 'i'}, {"decryption", no_argument, NULL, 'y'}, {"help", no_argument, NULL, 'h'}, + {NULL, 0, NULL, 0}, }; g_autofree gchar *default_options_file = NULL; g_autofree gchar *default_config_file = NULL; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/swtpm-0.8.0/src/swtpm_setup/swtpm_setup.c new/swtpm-0.8.1/src/swtpm_setup/swtpm_setup.c --- old/swtpm-0.8.0/src/swtpm_setup/swtpm_setup.c 2022-11-10 18:24:08.000000000 +0100 +++ new/swtpm-0.8.1/src/swtpm_setup/swtpm_setup.c 2023-08-15 19:23:18.000000000 +0200 @@ -937,7 +937,7 @@ gchar *my_argv[] = { "--print-capabilities", is_tpm2 ? "--tpm2" : NULL, NULL }; g_autofree gchar *logop = NULL; g_autoptr(GError) error = NULL; - g_autofree gchar **argv; + g_autofree gchar **argv = NULL; int exit_status = 0; gboolean success; int ret = 1; @@ -1387,7 +1387,7 @@ case '1': /* --version */ versioninfo(); ret = 0; - goto error; + goto out; case 'y': /* --print-capabilities */ printcapabilities = TRUE; break; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/swtpm-0.8.0/swtpm.spec new/swtpm-0.8.1/swtpm.spec --- old/swtpm-0.8.0/swtpm.spec 2022-11-10 18:24:08.000000000 +0100 +++ new/swtpm-0.8.1/swtpm.spec 2023-08-15 19:23:18.000000000 +0200 @@ -8,7 +8,7 @@ Summary: TPM Emulator Name: swtpm -Version: 0.8.0 +Version: 0.8.1 Release: 1%{?dist} License: BSD Url: https://github.com/stefanberger/swtpm @@ -174,6 +174,9 @@ %{_datadir}/swtpm/swtpm-create-tpmca %changelog +* Tue Aug 15 2023 Stefan Berger <stef...@linux.ibm.com> - 0.8.1-0.20230815git------ +- v0.8.1 release + * Thu Nov 10 2022 Stefan Berger <stef...@linux.ibm.com> - 0.8.0-0.20221110git------- - v0.8.0 release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/swtpm-0.8.0/swtpm.spec.in new/swtpm-0.8.1/swtpm.spec.in --- old/swtpm-0.8.0/swtpm.spec.in 2022-11-10 18:24:08.000000000 +0100 +++ new/swtpm-0.8.1/swtpm.spec.in 2023-08-15 19:23:18.000000000 +0200 @@ -174,6 +174,9 @@ %{_datadir}/swtpm/swtpm-create-tpmca %changelog +* Tue Aug 15 2023 Stefan Berger <stef...@linux.ibm.com> - 0.8.1-0.20230815git------ +- v0.8.1 release + * Thu Nov 10 2022 Stefan Berger <stef...@linux.ibm.com> - 0.8.0-0.20221110git------- - v0.8.0 release