Accepting request 858005 from security

- Create /var/lib/swtpm-localca to store the keys created by swtpm-localca (bsc#1179811)
- Replace net-tools-deprecated with iproute2 since the scripts in swtpm now can use 'ss' instead of 'netstat'

OBS-URL: https://build.opensuse.org/request/show/858005
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/swtpm?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2020-12-22 10:52:12 +00:00 committed by Git OBS Bridge
commit a2333b736e
2 changed files with 20 additions and 7 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Dec 22 07:53:04 UTC 2020 - Gary Ching-Pang Lin <glin@suse.com>
- Use "Requires user(tss)" for the "tss" user and group
-------------------------------------------------------------------
Tue Dec 22 04:06:10 UTC 2020 - Gary Ching-Pang Lin <glin@suse.com>
- Create /var/lib/swtpm-localca to store the keys created by
swtpm-localca (bsc#1179811)
- Replace net-tools-deprecated with iproute2 since the scripts in
swtpm now can use 'ss' instead of 'netstat'
-------------------------------------------------------------------
Sun Nov 22 03:16:13 UTC 2020 - Kai Liu <kai.liu@suse.com>

View File

@ -33,6 +33,7 @@ BuildRequires: expect
BuildRequires: fuse-devel
BuildRequires: glib2-devel
BuildRequires: gnutls
BuildRequires: iproute2
BuildRequires: libgnutls-devel
BuildRequires: libopenssl-devel
BuildRequires: libseccomp-devel
@ -41,14 +42,10 @@ BuildRequires: libtool
BuildRequires: libtpms-devel
BuildRequires: python3-cryptography
BuildRequires: socat
%if 0%{?suse_version} >= 1500
BuildRequires: net-tools-deprecated
%endif
Requires: trousers
%if 0%{?suse_version} >= 1500
Requires: net-tools-deprecated
%endif
Requires: iproute2
Requires: python3-cryptography
Requires: trousers
Requires: user(tss)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -91,6 +88,8 @@ make %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}%{_localstatedir}/lib/swtpm-localca
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@ -113,6 +112,7 @@ make %{?_smp_mflags}
%{python_sitelib}/py_swtpm_setup/*.py
%{python_sitelib}/swtpm_localca*
%{python_sitelib}/swtpm_setup*
%dir %attr(0750,tss,root) %{_localstatedir}/lib/swtpm-localca
%files devel
%{_libdir}/swtpm/*.so