|
|
524513 |
%global _hardened_build 1
|
|
|
524513 |
|
|
|
524513 |
Name: clevis
|
|
|
524513 |
Version: 11
|
|
|
524513 |
Release: 9%{?dist}
|
|
|
524513 |
Summary: Automated decryption framework
|
|
|
524513 |
|
|
|
524513 |
License: GPLv3+
|
|
|
524513 |
URL: https://github.com/latchset/%{name}
|
|
|
524513 |
Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|
|
524513 |
|
|
|
524513 |
Patch01: Delete-remaining-references-to-the-removed-http-pin.patch
|
|
|
524513 |
Patch02: Install-cryptsetup-and-tpm2_pcrlist-in-the-initramfs.patch
|
|
|
524513 |
Patch03: Add-device-TCTI-library-to-the-initramfs.patch
|
|
|
524513 |
Patch04: Check-key-derivation-key-is-available.patch
|
|
|
524513 |
Patch05: Adjust-pin-tang-test-to-account-for-newer-tang-witho.patch
|
|
|
524513 |
Patch06: Add-clevis-luks-report-regen.patch
|
|
|
524513 |
Patch07: Improve-error-message-when-bind-is-given-an-invalid-.patch
|
|
|
524513 |
Patch08: Add-support-for-listing-existing-PBD-policies-in-pla.patch
|
|
|
524513 |
Patch09: Add-the-option-to-extract-luks-passphrase-used-for-b.patch
|
|
|
524513 |
Patch10: Add-rd.neednet-1-to-cmdline-only-if-there-are-device.patch
|
|
|
524513 |
Patch11: Improve-tests-speed.patch
|
|
|
524513 |
Patch12: Use-one-clevis-luks-askpass-per-device.patch
|
|
|
524513 |
Patch13: Improve-clevis-luks-regen-no-unbind-in-every-case.patch
|
|
|
524513 |
|
|
|
524513 |
BuildRequires: gcc
|
|
|
524513 |
BuildRequires: meson
|
|
|
524513 |
BuildRequires: asciidoc
|
|
|
524513 |
BuildRequires: ninja-build
|
|
|
524513 |
BuildRequires: bash-completion
|
|
|
524513 |
|
|
|
524513 |
BuildRequires: libjose-devel >= 8
|
|
|
524513 |
BuildRequires: libluksmeta-devel >= 8
|
|
|
524513 |
BuildRequires: audit-libs-devel
|
|
|
524513 |
BuildRequires: libudisks2-devel
|
|
|
524513 |
BuildRequires: openssl-devel
|
|
|
524513 |
|
|
|
524513 |
BuildRequires: tpm2-tools >= 3.0.0
|
|
|
524513 |
BuildRequires: desktop-file-utils
|
|
|
524513 |
BuildRequires: pkgconfig
|
|
|
524513 |
BuildRequires: systemd
|
|
|
524513 |
BuildRequires: dracut
|
|
|
524513 |
BuildRequires: tang >= 6
|
|
|
524513 |
BuildRequires: curl
|
|
|
524513 |
BuildRequires: luksmeta
|
|
|
524513 |
BuildRequires: cracklib-dicts
|
|
|
524513 |
Buildrequires: jq
|
|
|
524513 |
BuildRequires: diffutils
|
|
|
524513 |
BuildRequires: expect
|
|
|
524513 |
|
|
|
524513 |
Requires: tpm2-tools >= 3.0.0
|
|
|
524513 |
Requires: coreutils
|
|
|
524513 |
Requires: jose >= 8
|
|
|
524513 |
Requires: curl
|
|
|
524513 |
Requires(pre): shadow-utils
|
|
|
524513 |
|
|
|
524513 |
%description
|
|
|
524513 |
Clevis is a framework for automated decryption. It allows you to encrypt
|
|
|
524513 |
data using sophisticated unlocking policies which enable decryption to
|
|
|
524513 |
occur automatically.
|
|
|
524513 |
|
|
|
524513 |
The clevis package provides basic encryption/decryption policy support.
|
|
|
524513 |
Users can use this directly; but most commonly, it will be used as a
|
|
|
524513 |
building block for other packages. For example, see the clevis-luks
|
|
|
524513 |
and clevis-dracut packages for automatic root volume unlocking of LUKSv1
|
|
|
524513 |
volumes during early boot.
|
|
|
524513 |
|
|
|
524513 |
%package luks
|
|
|
524513 |
Summary: LUKSv1 integration for clevis
|
|
|
524513 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
524513 |
Requires: cryptsetup
|
|
|
524513 |
Requires: luksmeta >= 8
|
|
|
524513 |
|
|
|
524513 |
%description luks
|
|
|
524513 |
LUKSv1 integration for clevis. This package allows you to bind a LUKSv1
|
|
|
524513 |
volume to a clevis unlocking policy. For automated unlocking, an unlocker
|
|
|
524513 |
will also be required. See, for example, clevis-dracut and clevis-udisks2.
|
|
|
524513 |
|
|
|
524513 |
%package systemd
|
|
|
524513 |
Summary: systemd integration for clevis
|
|
|
524513 |
Requires: %{name}-luks%{?_isa} = %{version}-%{release}
|
|
|
524513 |
%if 0%{?fedora} > 27
|
|
|
524513 |
Requires: systemd%{?_isa} >= 235-3
|
|
|
524513 |
%else
|
|
|
524513 |
%if 0%{?fedora} == 27
|
|
|
524513 |
Requires: systemd%{?_isa} >= 234-9
|
|
|
524513 |
%else
|
|
|
524513 |
%if 0%{?fedora} == 26
|
|
|
524513 |
Requires: systemd%{?_isa} >= 233-7
|
|
|
524513 |
%else
|
|
|
524513 |
Requires: systemd%{?_isa} >= 236
|
|
|
524513 |
%endif
|
|
|
524513 |
%endif
|
|
|
524513 |
%endif
|
|
|
524513 |
Requires: nc
|
|
|
524513 |
|
|
|
524513 |
%description systemd
|
|
|
524513 |
Automatically unlocks LUKSv1 _netdev block devices from /etc/crypttab.
|
|
|
524513 |
|
|
|
524513 |
%package dracut
|
|
|
524513 |
Summary: Dracut integration for clevis
|
|
|
524513 |
Requires: %{name}-systemd%{?_isa} = %{version}-%{release}
|
|
|
524513 |
Requires: dracut-network
|
|
|
524513 |
|
|
|
524513 |
%description dracut
|
|
|
524513 |
Automatically unlocks LUKSv1 block devices in early boot.
|
|
|
524513 |
|
|
|
524513 |
%package udisks2
|
|
|
524513 |
Summary: UDisks2/Storaged integration for clevis
|
|
|
524513 |
Requires: %{name}-luks%{?_isa} = %{version}-%{release}
|
|
|
524513 |
|
|
|
524513 |
%description udisks2
|
|
|
524513 |
Automatically unlocks LUKSv1 block devices in desktop environments that
|
|
|
524513 |
use UDisks2 or storaged (like GNOME).
|
|
|
524513 |
|
|
|
524513 |
%prep
|
|
|
524513 |
%autosetup -p1
|
|
|
524513 |
|
|
|
524513 |
%build
|
|
|
524513 |
%meson -Duser=clevis -Dgroup=clevis
|
|
|
524513 |
%meson_build
|
|
|
524513 |
|
|
|
524513 |
%install
|
|
|
524513 |
%meson_install
|
|
|
524513 |
|
|
|
524513 |
%check
|
|
|
524513 |
desktop-file-validate \
|
|
|
524513 |
%{buildroot}/%{_sysconfdir}/xdg/autostart/%{name}-luks-udisks2.desktop
|
|
|
524513 |
%meson_test
|
|
|
524513 |
|
|
|
524513 |
%pre
|
|
|
524513 |
getent group %{name} >/dev/null || groupadd -r %{name}
|
|
|
524513 |
getent passwd %{name} >/dev/null || \
|
|
|
524513 |
useradd -r -g %{name} -d %{_localstatedir}/cache/%{name} -s /sbin/nologin \
|
|
|
524513 |
-c "Clevis Decryption Framework unprivileged user" %{name}
|
|
|
524513 |
exit 0
|
|
|
524513 |
|
|
|
524513 |
%pre systemd
|
|
|
524513 |
if [ $1 -ge 0 ]; then
|
|
|
524513 |
# clevis-systemd < 11-8 shipped with clevis-luks-askpass.path unit.
|
|
|
524513 |
# Make sure it's gone.
|
|
|
524513 |
[ -e /usr/lib/systemd/system/clevis-luks-askpass.path ] && \
|
|
|
524513 |
systemctl disable clevis-luks-askpass.path
|
|
|
524513 |
fi
|
|
|
524513 |
exit 0
|
|
|
524513 |
|
|
|
524513 |
%files
|
|
|
524513 |
%license COPYING
|
|
|
524513 |
%{_datadir}/bash-completion/
|
|
|
524513 |
%{_bindir}/%{name}-decrypt-tang
|
|
|
524513 |
%{_bindir}/%{name}-decrypt-tpm2
|
|
|
524513 |
%{_bindir}/%{name}-decrypt-sss
|
|
|
524513 |
%{_bindir}/%{name}-decrypt
|
|
|
524513 |
%{_bindir}/%{name}-encrypt-tang
|
|
|
524513 |
%{_bindir}/%{name}-encrypt-tpm2
|
|
|
524513 |
%{_bindir}/%{name}-encrypt-sss
|
|
|
524513 |
%{_bindir}/%{name}
|
|
|
524513 |
%{_mandir}/man1/%{name}-encrypt-tang.1*
|
|
|
524513 |
%{_mandir}/man1/%{name}-encrypt-tpm2.1*
|
|
|
524513 |
%{_mandir}/man1/%{name}-encrypt-sss.1*
|
|
|
524513 |
%{_mandir}/man1/%{name}-decrypt.1*
|
|
|
524513 |
%{_mandir}/man1/%{name}.1*
|
|
|
524513 |
|
|
|
524513 |
%files luks
|
|
|
524513 |
%{_mandir}/man7/%{name}-luks-unlockers.7*
|
|
|
524513 |
%{_mandir}/man1/%{name}-luks-unlock.1*
|
|
|
524513 |
%{_mandir}/man1/%{name}-luks-unbind.1*
|
|
|
524513 |
%{_mandir}/man1/%{name}-luks-bind.1*
|
|
|
524513 |
%{_mandir}/man1/%{name}-luks-regen.1*
|
|
|
524513 |
%{_mandir}/man1/%{name}-luks-report.1*
|
|
|
524513 |
%{_mandir}/man1/%{name}-luks-list.1*
|
|
|
524513 |
%{_mandir}/man1/%{name}-luks-pass.1.*
|
|
|
524513 |
%{_bindir}/%{name}-luks-unlock
|
|
|
524513 |
%{_bindir}/%{name}-luks-unbind
|
|
|
524513 |
%{_bindir}/%{name}-luks-bind
|
|
|
524513 |
%{_bindir}/%{name}-luks-common-functions
|
|
|
524513 |
%{_bindir}/%{name}-luks-regen
|
|
|
524513 |
%{_bindir}/%{name}-luks-report
|
|
|
524513 |
%{_bindir}/%{name}-luks-report-compare
|
|
|
524513 |
%{_bindir}/%{name}-luks-report-decode
|
|
|
524513 |
%{_bindir}/%{name}-luks-report-sss
|
|
|
524513 |
%{_bindir}/%{name}-luks-report-tang
|
|
|
524513 |
%{_bindir}/%{name}-luks-list
|
|
|
524513 |
%{_bindir}/%{name}-luks-pass
|
|
|
524513 |
|
|
|
524513 |
%files systemd
|
|
|
524513 |
%{_libexecdir}/%{name}-luks-askpass
|
|
|
524513 |
%{_unitdir}/%{name}-luks-askpass@.path
|
|
|
524513 |
%{_unitdir}/%{name}-luks-askpass@.service
|
|
|
524513 |
|
|
|
524513 |
%files dracut
|
|
|
524513 |
%{_prefix}/lib/dracut/modules.d/60%{name}
|
|
|
524513 |
|
|
|
524513 |
%files udisks2
|
|
|
524513 |
%{_sysconfdir}/xdg/autostart/%{name}-luks-udisks2.desktop
|
|
|
524513 |
%attr(4755, root, root) %{_libexecdir}/%{name}-luks-udisks2
|
|
|
524513 |
|
|
|
524513 |
%changelog
|
|
|
524513 |
* Wed Feb 02 2020 Sergio Correia <scorreia@redhat.com> - 11-9
|
|
|
524513 |
- Improve clevis luks regen not to unbind+bind in every case
|
|
|
524513 |
Resolves: rhbz#1795675
|
|
|
524513 |
|
|
|
524513 |
* Mon Jan 13 2020 Sergio Correia <scorreia@redhat.com> - 11-8
|
|
|
524513 |
- Use one clevis-luks-askpass per device
|
|
|
524513 |
Resolves: rhbz#1784524
|
|
|
524513 |
|
|
|
524513 |
* Sat Nov 30 2019 Sergio Correia <scorreia@redhat.com> - 11-7
|
|
|
524513 |
- Add rd.neednet=1 to cmdline only if there are devices bound to tang
|
|
|
524513 |
Resolves: rhbz#1762028
|
|
|
524513 |
|
|
|
524513 |
* Sat Nov 30 2019 Sergio Correia <scorreia@redhat.com> - 11-6
|
|
|
524513 |
- Add option to extract luks passphrase used for binding
|
|
|
524513 |
Resolves: rhbz#1436780
|
|
|
524513 |
|
|
|
524513 |
* Thu Nov 28 2019 Sergio Correia <scorreia@redhat.com> - 11-5
|
|
|
524513 |
- Add support for listing existing PBD policies in place
|
|
|
524513 |
Resolves: rhbz#1766526
|
|
|
524513 |
|
|
|
524513 |
* Fri Oct 18 2019 Sergio Correia <scorreia@redhat.com> - 11-4
|
|
|
524513 |
- Improve error message when bind is given an invalid PIN
|
|
|
524513 |
Resolves: rhbz#1543380
|
|
|
524513 |
|
|
|
524513 |
* Wed Oct 16 2019 Sergio Correia <scorreia@redhat.com> - 11-3
|
|
|
524513 |
- Add clevis luks report and regen
|
|
|
524513 |
Resolves: rhbz#1564566
|
|
|
524513 |
Resolves: rhbz#1564559
|
|
|
524513 |
|
|
|
524513 |
* Fri Jan 04 2019 Daniel Kopecek <dkopecek@redhat.com> - 11-2
|
|
|
524513 |
- Check that key derivation key is available
|
|
|
524513 |
- Delete remaining references to the removed http pin
|
|
|
524513 |
- Install cryptsetup and tpm2_pcrlist in the initramfs
|
|
|
524513 |
- Add device TCTI library to the initramfs
|
|
|
524513 |
Resolves: rhbz#1648004
|
|
|
524513 |
Resolves: rhbz#1650246
|
|
|
524513 |
|
|
|
524513 |
* Tue Aug 14 2018 Nathaniel McCallum <npmccallum@redhat.com> - 11-1
|
|
|
524513 |
- Update to v11
|
|
|
524513 |
|
|
|
524513 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 10-2
|
|
|
524513 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
524513 |
|
|
|
524513 |
* Wed Mar 21 2018 Nathaniel McCallum <npmccallum@redhat.com> - 10-1
|
|
|
524513 |
- Update to v10
|
|
|
524513 |
|
|
|
524513 |
* Tue Feb 13 2018 Nathaniel McCallum <npmccallum@redhat.com> - 9-1
|
|
|
524513 |
- Update to v9
|
|
|
524513 |
|
|
|
524513 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8-2
|
|
|
524513 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
524513 |
|
|
|
524513 |
* Mon Nov 13 2017 Nathaniel McCallum <npmccallum@redhat.com> - 8-1
|
|
|
524513 |
- Update to v8
|
|
|
524513 |
|
|
|
524513 |
* Wed Nov 08 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 7-2
|
|
|
524513 |
- Rebuild for cryptsetup-2.0.0
|
|
|
524513 |
|
|
|
524513 |
* Fri Oct 27 2017 Nathaniel McCallum <npmccallum@redhat.com> - 7-1
|
|
|
524513 |
- Update to v7
|
|
|
524513 |
|
|
|
524513 |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6-3
|
|
|
524513 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
524513 |
|
|
|
524513 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6-2
|
|
|
524513 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
524513 |
|
|
|
524513 |
* Tue Jun 27 2017 Nathaniel McCallum <npmccallum@redhat.com> - 6-1
|
|
|
524513 |
- New upstream release
|
|
|
524513 |
- Specify unprivileged user/group during configuration
|
|
|
524513 |
- Move clevis user/group creation to base clevis package
|
|
|
524513 |
|
|
|
524513 |
* Mon Jun 26 2017 Nathaniel McCallum <npmccallum@redhat.com> - 5-1
|
|
|
524513 |
- New upstream release
|
|
|
524513 |
- Run clevis decryption from udisks2 under an unprivileged user
|
|
|
524513 |
|
|
|
524513 |
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 4-1
|
|
|
524513 |
- New upstream release
|
|
|
524513 |
|
|
|
524513 |
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 3-1
|
|
|
524513 |
- New upstream release
|
|
|
524513 |
|
|
|
524513 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2-2
|
|
|
524513 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
524513 |
|
|
|
524513 |
* Fri Nov 18 2016 Nathaniel McCallum <npmccallum@redhat.com> - 2-1
|
|
|
524513 |
- New upstream release
|
|
|
524513 |
|
|
|
524513 |
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1-1
|
|
|
524513 |
- First release
|