|
|
|
@ -1,16 +1,19 @@
|
|
|
|
|
Name: tang
|
|
|
|
|
Version: 14
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 7
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Summary: Network Presence Binding Daemon
|
|
|
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
URL: https://github.com/latchset/%{name}
|
|
|
|
|
Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|
|
|
|
Source1: tang.sysusers
|
|
|
|
|
Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
|
Patch1: 0001-Move-key-generation-to-tang.patch
|
|
|
|
|
Patch2: 0002-Exit-with-success-unless-the-issue-was-with-with-tan.patch
|
|
|
|
|
Patch3: 0003-Fix-permissions-race-condition.patch
|
|
|
|
|
Patch4: 0004-Set-tang-owner-group.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: meson
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: jose >= 8
|
|
|
|
|
BuildRequires: libjose-devel >= 8
|
|
|
|
|
BuildRequires: libjose-zlib-devel >= 8
|
|
|
|
@ -21,15 +24,13 @@ BuildRequires: systemd-devel
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
BuildRequires: curl
|
|
|
|
|
|
|
|
|
|
BuildRequires: asciidoc
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: grep
|
|
|
|
|
BuildRequires: socat
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
BuildRequires: iproute
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
Requires: coreutils
|
|
|
|
@ -46,39 +47,32 @@ Tang is a small daemon for binding data to the presence of a third party.
|
|
|
|
|
%autosetup -S git
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%meson
|
|
|
|
|
%meson_build
|
|
|
|
|
autoreconf -i
|
|
|
|
|
%configure
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/tang.conf
|
|
|
|
|
grep "User=%{name}" $RPM_BUILD_ROOT/%{_unitdir}/%{name}d@.service || echo "User=%{name}" >> $RPM_BUILD_ROOT/%{_unitdir}/%{name}d@.service
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%make_install
|
|
|
|
|
echo "User=%{name}" >> $RPM_BUILD_ROOT/%{_unitdir}/%{name}d@.service
|
|
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT/%{_localstatedir}/db/%{name}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%meson_test
|
|
|
|
|
if ! make %{?_smp_mflags} check; then
|
|
|
|
|
cat test-suite.log
|
|
|
|
|
false
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
%sysusers_create_compat %{SOURCE1}
|
|
|
|
|
getent group %{name} >/dev/null || groupadd -r %{name}
|
|
|
|
|
getent passwd %{name} >/dev/null || \
|
|
|
|
|
useradd -r -g %{name} -d %{_localstatedir}/cache/%{name} -s /sbin/nologin \
|
|
|
|
|
-c "Tang Network Presence Daemon user" %{name}
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post %{name}d.socket
|
|
|
|
|
|
|
|
|
|
# Let's make sure any existing keys are readable only
|
|
|
|
|
# by the owner/group.
|
|
|
|
|
if [ -d /var/db/tang ]; then
|
|
|
|
|
for k in /var/db/tang/*.jwk; do
|
|
|
|
|
test -e "${k}" || continue
|
|
|
|
|
chmod 0440 -- "${k}"
|
|
|
|
|
done
|
|
|
|
|
for k in /var/db/tang/.*.jwk; do
|
|
|
|
|
test -e "${k}" || continue
|
|
|
|
|
chmod 0440 -- "${k}"
|
|
|
|
|
done
|
|
|
|
|
chown tang:tang -R /var/db/tang
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun %{name}d.socket
|
|
|
|
|
|
|
|
|
@ -91,82 +85,41 @@ fi
|
|
|
|
|
%{_unitdir}/%{name}d@.service
|
|
|
|
|
%{_unitdir}/%{name}d.socket
|
|
|
|
|
%{_libexecdir}/%{name}d-keygen
|
|
|
|
|
%{_libexecdir}/%{name}d-rotate-keys
|
|
|
|
|
%{_libexecdir}/%{name}d
|
|
|
|
|
%{_mandir}/man8/tang.8*
|
|
|
|
|
%{_bindir}/%{name}-show-keys
|
|
|
|
|
%{_mandir}/man1/tang-show-keys.1*
|
|
|
|
|
%{_mandir}/man1/tangd-rotate-keys.1.*
|
|
|
|
|
%{_sysusersdir}/tang.conf
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jun 29 2023 Sergio Arroutbi <sarroutb@redhat.com> - 14-2
|
|
|
|
|
- Fix service start up
|
|
|
|
|
|
|
|
|
|
* Tue Jun 27 2023 Sergio Arroutbi <sarroutb@redhat.com> - 14-1
|
|
|
|
|
- New upstream release - v14.
|
|
|
|
|
Resolves: rhbz#2182411
|
|
|
|
|
Resolves: CVE-2023-1672
|
|
|
|
|
|
|
|
|
|
* Wed Aug 17 2022 Sergio Arroutbi <sarroutb@redhat.com> - 11-2
|
|
|
|
|
- Adopt systemd-sysusers format
|
|
|
|
|
Resolves: rhbz#2095474
|
|
|
|
|
|
|
|
|
|
* Tue Dec 14 2021 Sergio Correia <scorreia@redhat.com> - 11-1
|
|
|
|
|
- New upstream release - v11.
|
|
|
|
|
Resolves: CVE-2021-4076
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 7-8
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 10-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Fri Jul 21 2023 Sergio Arroutbi <sarroutb@redhat.com> - 7-8
|
|
|
|
|
- Set correct user/group (tang/tang) in tangd-keygen
|
|
|
|
|
Resolves: rhbz#2188743
|
|
|
|
|
|
|
|
|
|
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 10-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
|
|
|
|
|
* Thu May 20 2021 Sergio Correia <scorreia@redhat.com> - 10-2
|
|
|
|
|
- Fix issues reported by static analyzer checks
|
|
|
|
|
Resolves: rhbz#1956765
|
|
|
|
|
|
|
|
|
|
* Wed May 05 2021 Sergio Correia <scorreia@redhat.com> - 10-1
|
|
|
|
|
- New upstream release - v10.
|
|
|
|
|
Resolves: rhbz#1956765
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 8-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Feb 09 2021 Sergio Correia <scorreia@redhat.com> - 8-2
|
|
|
|
|
- Remove extra patches as they are already included in v8 release
|
|
|
|
|
|
|
|
|
|
* Mon Feb 08 2021 Sergio Correia <scorreia@redhat.com> - 8-1
|
|
|
|
|
- New upstream release - v8.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Dec 1 2020 Sergio Correia <scorreia@redhat.com> - 7.8
|
|
|
|
|
- Move build system to meson
|
|
|
|
|
Upstream commits (fed9020, 590de27)
|
|
|
|
|
- Move key handling to tang itself
|
|
|
|
|
Upstream commits (6090505, c71df1d, 7119454)
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
* Wed Jun 28 2023 Sergio Arroutbi <sarroutb@redhat.com> - 7-7
|
|
|
|
|
- Fix race condition when creating/rotating keys
|
|
|
|
|
Resolves: rhbz#2182410
|
|
|
|
|
Resolves: CVE-2023-1672
|
|
|
|
|
|
|
|
|
|
* Wed Apr 15 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 7-6
|
|
|
|
|
- Rebuild for http-parser 2.9.4
|
|
|
|
|
* Wed Jan 13 2021 Sergio Correia <scorreia@redhat.com> - 7-6
|
|
|
|
|
- Exit with success unless the issue was with with tangd itself
|
|
|
|
|
Resolves: rhbz#1828558
|
|
|
|
|
|
|
|
|
|
* Tue Feb 25 2020 Sergio Correia <scorreia@redhat.com> - 7-5
|
|
|
|
|
- Rebuilt after http-parser update
|
|
|
|
|
* Sun Dec 01 2019 Sergio Correia <scorreia@redhat.com> - 7-5
|
|
|
|
|
- Permissions of /var/db/tang set to 0700
|
|
|
|
|
- Home dir of user tang is /var/cache/tang
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
* Fri Nov 29 2019 Sergio Correia <scorreia@redhat.com> - 7-4
|
|
|
|
|
- Fix permissions of /var/db/tang
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
* Tue Oct 15 2019 Sergio Correia <scorreia@redhat.com> - 7-3
|
|
|
|
|
- Rebuild to ensure correct dist tag
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
* Sun Sep 29 2019 Sergio Correia <scorreia@redhat.com> - 7-2
|
|
|
|
|
- Move key generation to tang
|
|
|
|
|
- Resolves rhbz#1745177, rhbz#1679186
|
|
|
|
|
|
|
|
|
|
* Fri Aug 10 2018 Nathaniel McCallum <npmccallum@redhat.com> - 7-1
|
|
|
|
|
- New upstream release
|
|
|
|
|