Blame SPECS/crypto-policies.spec

99b432
%global git_date 20181217
99b432
%global git_commit_hash 9a35207
99b432
99b432
Name:           crypto-policies
99b432
Version:        %{git_date}
99b432
Release:        6.git%{git_commit_hash}%{?dist}
99b432
Summary:        Systemwide crypto policies
99b432
99b432
License:        LGPLv2+
99b432
URL:            https://gitlab.com/redhat-crypto/fedora-crypto-policies
99b432
99b432
# This is a tarball of the git repository without the .git/
99b432
# directory.
99b432
# For RHEL-8 we use the upstream branch next-default.
99b432
Source0:        crypto-policies-git%{git_commit_hash}.tar.gz
99b432
Source1:        crypto-policies.7.txt
99b432
Source2:        crypto-policies.7
99b432
Patch1:         crypto-policies-manpage.patch
99b432
Patch2:         crypto-policies-java-fix.patch
99b432
Patch3:         crypto-policies-libreswan-fix.patch
99b432
99b432
BuildArch: noarch
99b432
BuildRequires: asciidoc
99b432
BuildRequires: libxslt
99b432
BuildRequires: openssl
99b432
BuildRequires: gnutls-utils >= 3.6.0
99b432
BuildRequires: java-1.8.0-openjdk-devel
99b432
BuildRequires: bind
99b432
BuildRequires: perl-interpreter
99b432
BuildRequires: perl-generators
99b432
BuildRequires: perl(File::pushd), perl(File::Temp), perl(File::Copy)
99b432
BuildRequires: perl(File::Which)
99b432
BuildRequires: python3-devel
99b432
99b432
# used by update-crypto-policies
99b432
Requires: coreutils
99b432
Requires: grep
99b432
Requires: sed
99b432
Requires(post): coreutils
99b432
Requires(post): grep
99b432
Requires(post): sed
99b432
# used by fips-mode-setup
99b432
Recommends: grubby
99b432
99b432
%description
99b432
This package provides a tool update-crypto-policies, which sets
99b432
the policy applicable for the various cryptographic back-ends, such as
99b432
SSL/TLS libraries. The policy set by the tool will be the default policy
99b432
used by these back-ends unless the application user configures them otherwise.
99b432
99b432
The package also provides a tool fips-mode-setup, which can be used
99b432
to enable or disable the system FIPS mode.
99b432
99b432
%prep
99b432
%setup -q -n %{name}
99b432
%patch1 -p1 -b .manpage
99b432
%patch2 -p1 -b .java-fix
99b432
%patch3 -p1 -b .libreswan-fix
99b432
99b432
%build
99b432
make %{?_smp_mflags}
99b432
99b432
%install
99b432
mkdir -p -m 755 %{buildroot}%{_datarootdir}/crypto-policies/
99b432
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/crypto-policies/back-ends/
99b432
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/crypto-policies/local.d/
99b432
mkdir -p -m 755 %{buildroot}%{_mandir}/man7
99b432
mkdir -p -m 755 %{buildroot}%{_mandir}/man8
99b432
mkdir -p -m 755 %{buildroot}%{_bindir}
99b432
99b432
make DESTDIR=%{buildroot} DIR=%{_datarootdir}/crypto-policies MANDIR=%{_mandir}/man8 %{?_smp_mflags} install
99b432
install -p -m 644 default-config %{buildroot}%{_sysconfdir}/crypto-policies/config
99b432
install -p -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man7/crypto-policies.7
99b432
99b432
%check
99b432
make check %{?_smp_mflags}
99b432
99b432
%post
99b432
%{_bindir}/update-crypto-policies --no-check >/dev/null
99b432
99b432
99b432
%files
99b432
99b432
%dir %{_sysconfdir}/crypto-policies/
99b432
%dir %{_sysconfdir}/crypto-policies/back-ends/
99b432
%dir %{_sysconfdir}/crypto-policies/local.d/
99b432
%dir %{_datarootdir}/crypto-policies/
99b432
99b432
%config(noreplace) %{_sysconfdir}/crypto-policies/config
99b432
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/gnutls.config
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/openssl.config
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/opensslcnf.config
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/openssh.config
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/opensshserver.config
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/nss.config
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/bind.config
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/java.config
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/krb5.config
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/openjdk.config
99b432
%ghost %{_sysconfdir}/crypto-policies/back-ends/libreswan.config
99b432
99b432
%{_bindir}/update-crypto-policies
99b432
%{_bindir}/fips-mode-setup
99b432
%{_bindir}/fips-finish-install
99b432
%{_mandir}/man7/crypto-policies.7.gz
99b432
%{_mandir}/man8/update-crypto-policies.8.gz
99b432
%{_mandir}/man8/fips-mode-setup.8.gz
99b432
%{_mandir}/man8/fips-finish-install.8.gz
99b432
%{_datarootdir}/crypto-policies/LEGACY/*
99b432
%{_datarootdir}/crypto-policies/DEFAULT/*
99b432
%{_datarootdir}/crypto-policies/FUTURE/*
99b432
%{_datarootdir}/crypto-policies/FIPS/*
99b432
%{_datarootdir}/crypto-policies/EMPTY/*
99b432
%{_datarootdir}/crypto-policies/default-config
99b432
%{_datarootdir}/crypto-policies/reload-cmds.sh
99b432
99b432
%{!?_licensedir:%global license %%doc}
99b432
%license COPYING.LESSER
99b432
99b432
%changelog
99b432
* Mon Feb 18 2019 Tomáš Mráz <tmraz@redhat.com> - 20181217-6.git9a35207
99b432
- libreswan: Allow coalescing the IKE/IPSEC proposals
99b432
99b432
* Fri Feb  8 2019 Tomáš Mráz <tmraz@redhat.com> - 20181217-5.git9a35207
99b432
- cleanups of the crypto-policies.7 manual page
99b432
99b432
* Fri Feb  1 2019 Tomáš Mráz <tmraz@redhat.com> - 20181217-4.git9a35207
99b432
- Java: Fix FIPS and FUTURE policy to allow RSA certificates in TLS
99b432
99b432
* Tue Jan 22 2019 Tomáš Mráz <tmraz@redhat.com> - 20181217-3.git9a35207
99b432
- cleanup duplicate and incorrect information from update-crypto-policies.8
99b432
  manual page
99b432
99b432
* Mon Jan 21 2019 Tomáš Mráz <tmraz@redhat.com> - 20181217-2.git9a35207
99b432
- add crypto-policies.7 manual page
99b432
99b432
* Mon Dec 17 2018 Tomáš Mráz <tmraz@redhat.com> - 20181217-1.git9a35207
99b432
- update-crypto-policies: Fix endless loop
99b432
- update-crypto-policies: Add warning about the need of system restart
99b432
- fips-mode-setup: Use grub2-editenv to modify the kernelopts for BLS
99b432
99b432
* Thu Nov 22 2018 Tomáš Mráz <tmraz@redhat.com> - 20181122-1.git70769d9
99b432
- update-crypto-policies: fix error on multiple matches in local.d
99b432
- Print warning when update-crypto-policies --set is used in the FIPS mode
99b432
- Java: Add 3DES and RC4 to legacy algorithms in LEGACY policy
99b432
- OpenSSL: Properly disable non AEAD and AES128 ciphersuites in FUTURE
99b432
- libreswan: Add chacha20_poly1305 to all policies and drop ikev1 from LEGACY
99b432
99b432
* Fri Oct 26 2018 Tomáš Mráz <tmraz@redhat.com> - 20181026-1.gitcc78cb7
99b432
- Fix regression in discovery of additional configuration
99b432
- NSS: add DSA keyword to LEGACY policy
99b432
- GnuTLS: Add 3DES and RC4 to LEGACY policy
99b432
99b432
* Tue Sep 25 2018 Tomáš Mráz <tmraz@redhat.com> - 20180925-2.git3ce363a
99b432
- Improve the package description
99b432
99b432
* Tue Sep 25 2018 Tomáš Mráz <tmraz@redhat.com> - 20180925-1.git3ce363a
99b432
- Use Recommends instead of Requires for grubby
99b432
- Revert setting of HostKeyAlgorithms for ssh client for now
99b432
99b432
* Fri Sep 21 2018 Tomáš Mráz <tmraz@redhat.com> - 20180921-1.git62bafde
99b432
- OpenSSH: Generate policy for sign algorithms
99b432
- Enable >= 255 bits EC curves in FUTURE policy
99b432
- OpenSSH: Add group1 key exchanges in LEGACY policy
99b432
- NSS: Add SHA224 to hash lists
99b432
- Print warning when update-crypto-policies --set FIPS is used
99b432
- fips-mode-setup: Kernel boot options are now modified with grubby
99b432
99b432
* Mon Aug 13 2018 Tomáš Mráz <tmraz@redhat.com> - 20180801-2.git2b95ede
99b432
- Fix build to use the system python
99b432
99b432
* Wed Aug  1 2018 Tomáš Mráz <tmraz@redhat.com> - 20180801-1.git2b95ede
99b432
- Add OpenSSL configuration file include support
99b432
- Disable TLS-1.0, 1.1 and DH with less than 2048 bits in DEFAULT policy
99b432
99b432
* Tue Jul 24 2018 Tomáš Mráz <tmraz@redhat.com> - 20180723-1.gitdb825c0
99b432
- Initial FIPS mode setup support
99b432
- NSS: Add tests for the generated policy
99b432
- Enable TLS-1.3 if available in the respective TLS library
99b432
- Enable SHA1 in certificates in LEGACY policy
99b432
- Disable CAMELLIA
99b432
- libreswan: Multiple bug fixes in policies
99b432
99b432
* Wed Apr 25 2018 Tomáš Mráz <tmraz@redhat.com> - 20180425-1.git6ad4018
99b432
- Restart/reload only enabled services
99b432
- Do not enable PSK ciphersuites by default in gnutls and openssl
99b432
- krb5: fix when more than 2048 bits keys are required
99b432
- Fix discovery of additional configurations #1564595
99b432
- Fix incorrect ciphersuite setup for libreswan
99b432
99b432
* Tue Mar  6 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20180306-1.gitaea6928
99b432
- Updated policy to reduce DH parameter size on DEFAULT level, taking into
99b432
  account feedback in #1549242,1#534532.
99b432
- Renamed openssh-server.config to opensshserver.config to reduce conflicts
99b432
  when local.d/ appending is used.
99b432
99b432
* Tue Feb 27 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20180227-1.git0ce1729
99b432
- Updated to include policies for libreswan
99b432
99b432
* Mon Feb 12 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20180112-1.git386e3fe
99b432
- Updated to apply the settings as in StrongCryptoSettings project. The restriction
99b432
  to TLS1.2, is not yet applied as we have no method to impose that in openssl.
99b432
  https://fedoraproject.org/wiki/Changes/StrongCryptoSettings
99b432
99b432
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 20171115-3.git921600e
99b432
- Escape macros in %%changelog
99b432
99b432
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20171115-2.git921600e
99b432
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
99b432
99b432
* Wed Nov 15 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20171115-1.git921600e
99b432
- Updated openssh policies for new openssh without rc4
99b432
- Removed policies for compat-gnutls28
99b432
99b432
* Wed Aug 23 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170823-1.git8d18c27
99b432
- Updated gnutls policies for 3.6.0
99b432
99b432
* Wed Aug 16 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170816-1.git2618a6c
99b432
- Updated to latest upstream
99b432
- Restarts openssh server on policy update
99b432
99b432
* Wed Aug  2 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170802-1.git9300620
99b432
- Updated to latest upstream
99b432
- Reloads openssh server on policy update
99b432
99b432
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170606-4.git7c32281
99b432
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
99b432
99b432
* Tue Jul 25 2017 Igor Gnatenko <ignatenko@redhat.com> - 20170606-3.git7c32281
99b432
- Restore Requires(post)
99b432
99b432
* Mon Jul 24 2017 Troy Dawson <tdawson@redhat.com> 20170606-2.git7c32281
99b432
- perl dependency renamed to perl-interpreter <ppisar@redhat.com>
99b432
- remove useless Requires(post) <ignatenko@redhat.com>
99b432
- Fix path of libdir in generate-policies.pl (#1474442) <tdawson@redhat.com>
99b432
99b432
* Tue Jun  6 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170606-1.git7c32281
99b432
- Updated to latest upstream
99b432
- Allows gnutls applications in LEGACY mode, to use certificates of 768-bits
99b432
99b432
* Wed May 31 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170531-1.gitce0df7b
99b432
- Updated to latest upstream
99b432
- Added new kerberos key types
99b432
99b432
* Sat Apr 01 2017 Björn Esser <besser82@fedoraproject.org> - 20170330-3.git55b66da
99b432
- Add Requires for update-crypto-policies in %%post
99b432
99b432
* Fri Mar 31 2017 Petr Å abata <contyk@redhat.com> - 20170330-2.git55b66da
99b432
- update-crypto-policies uses gred and sed, require them
99b432
99b432
* Thu Mar 30 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170330-1-git55b66da
99b432
- GnuTLS policies include RC4 in legacy mode (#1437213)
99b432
99b432
* Fri Feb 17 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160214-2-gitf3018dd
99b432
- Added openssh file
99b432
99b432
* Tue Feb 14 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160214-1-gitf3018dd
99b432
- Updated policies for BIND to address #1421875
99b432
99b432
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20161111-2.gita2363ce
99b432
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
99b432
99b432
* Fri Nov 11 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20161111-1-gita2363ce
99b432
- Include OpenJDK documentation.
99b432
99b432
* Tue Sep 27 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160926-2-git08b5501
99b432
- Improved messages on error.
99b432
99b432
* Mon Sep 26 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160926-1-git08b5501
99b432
- Added support for openssh client policy
99b432
99b432
* Wed Sep 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160921-1-git75b9b04
99b432
- Updated with latest upstream.
99b432
99b432
* Thu Jul 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160718-2-gitdb5ca59
99b432
- Added support for administrator overrides in generated policies in local.d
99b432
99b432
* Thu Jul 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160718-1-git340cb69
99b432
- Fixed NSS policy generation to include allowed hash algorithms
99b432
99b432
* Wed Jul 20 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160718-1-gitcaa4a8d
99b432
- Updated to new version with auto-generated policies
99b432
99b432
* Mon May 16 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160516-1-git8f69c35
99b432
- Generate policies for NSS
99b432
- OpenJDK policies were updated for opendjk 8
99b432
99b432
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20151104-2.gitf1cba5f
99b432
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
99b432
99b432
* Wed Nov  4 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20151104-1-gitcf1cba5f
99b432
- Generate policies for compat-gnutls28 (#1277790)
99b432
99b432
* Fri Oct 23 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20151005-2-gitc8452f8
99b432
- Generated files are put in a %%ghost directive
99b432
99b432
* Mon Oct  5 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20151005-1-gitc8452f8
99b432
- Updated policies from upstream
99b432
- Added support for the generation of libkrb5 policy
99b432
- Added support for the generation of openjdk policy
99b432
99b432
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20150518-2.gitffe885e
99b432
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
99b432
99b432
* Mon May 18 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20150518-1-gitffe885e
99b432
- Updated policies to remove SSL 3.0 and RC4 (#1220679)
99b432
99b432
* Fri Mar  6 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20150305-3-git2eeb03b
99b432
- Added make check
99b432
99b432
* Fri Mar  6 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20150305-2-git44afaa1
99b432
- Removed support for SECLEVEL (#1199274)
99b432
99b432
* Thu Mar  5 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20150305-1-git098a8a6
99b432
- Include AEAD ciphersuites in gnutls (#1198979)
99b432
99b432
* Sun Jan 25 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150115-3-git9ef7493
99b432
- Bump release so lastest git snapshot is newer NVR
99b432
99b432
* Thu Jan 15 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20150115-2-git9ef7493
99b432
- Updated to newest upstream version.
99b432
- Includes bind policies (#1179925)
99b432
99b432
* Tue Dec 16 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20141124-2-gitd4aa178
99b432
- Corrected typo in gnutls' future policy (#1173886)
99b432
99b432
* Mon Nov 24 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20141124-1-gitd4aa178
99b432
- re-enable SSL 3.0 (until its removal is coordinated with a Fedora change request)
99b432
99b432
* Thu Nov 20 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20141120-1-git9a26a5b
99b432
- disable SSL 3.0 (doesn't work in openssl)
99b432
99b432
* Fri Sep 05 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140905-1-git4649b7d
99b432
- enforce the acceptable TLS versions in openssl
99b432
99b432
* Wed Aug 27 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140827-1-git4e06f1d
99b432
- fix issue with RC4 being disabled in DEFAULT settings for openssl
99b432
99b432
* Thu Aug 14 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140814-1-git80e1e98
99b432
- fix issue in post script run on upgrade (#1130074)
99b432
99b432
* Tue Aug 12 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140812-1-gitb914bfd
99b432
- updated crypto-policies from repository
99b432
99b432
* Fri Jul 11 2014 Tom Callaway <spot@fedoraproject.org> - 20140708-2-git3a7ae3f
99b432
- fix license handling
99b432
99b432
* Tue Jul 08 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140708-1-git3a7ae3f
99b432
- updated crypto-policies from repository
99b432
99b432
* Fri Jun 20 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140620-1-gitdac1524
99b432
- updated crypto-policies from repository
99b432
- changed versioning
99b432
99b432
* Thu Jun 12 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-7-20140612gita2fa0c6
99b432
- updated crypto-policies from repository
99b432
99b432
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-7.20140522gita50bad2
99b432
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
99b432
99b432
* Thu May 29 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-6-20140522gita50bad2
99b432
- Require(post) coreutils (#1100335).
99b432
99b432
* Tue May 27 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-5-20140522gita50bad2
99b432
- Require coreutils.
99b432
99b432
* Thu May 22 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-4-20140522gita50bad2
99b432
- Install the default configuration file.
99b432
99b432
* Wed May 21 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-3-20140520git81364e4
99b432
- Run update-crypto-policies after installation.
99b432
99b432
* Tue May 20 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-2-20140520git81364e4
99b432
- Updated spec based on comments by Petr Lautrbach.
99b432
99b432
* Mon May 19 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-1-20140519gitf15621a
99b432
- Initial package build
99b432