Blame SPECS/crypto-policies.spec

2eb2f8
%global git_date 20210707
2eb2f8
%global git_commit 29f6c0bcee409d498574c094bc43f044caa98ab9
2eb2f8
%{?git_commit:%global git_commit_hash %(c=%{git_commit}; echo ${c:0:7})}
2eb2f8
2eb2f8
%global _python_bytecompile_extra 0
2eb2f8
2eb2f8
Name:           crypto-policies
2eb2f8
Version:        %{git_date}
2eb2f8
Release:        2.git%{git_commit_hash}%{?dist}
2eb2f8
Summary:        System-wide crypto policies
2eb2f8
2eb2f8
License:        LGPLv2+
2eb2f8
URL:            https://gitlab.com/redhat-crypto/fedora-crypto-policies
2eb2f8
# For RHEL-9 we use the upstream branch rhel9.
2eb2f8
Source0:        https://gitlab.com/redhat-crypto/fedora-crypto-policies/-/archive/%{git_commit_hash}/%{name}-git%{git_commit_hash}.tar.gz
2eb2f8
2eb2f8
BuildArch: noarch
2eb2f8
BuildRequires: asciidoc
2eb2f8
BuildRequires: libxslt
2eb2f8
BuildRequires: openssl
2eb2f8
BuildRequires: gnutls-utils >= 3.6.0
2eb2f8
BuildRequires: java-1.8.0-openjdk-devel
2eb2f8
BuildRequires: bind
2eb2f8
BuildRequires: perl-interpreter
2eb2f8
BuildRequires: perl-generators
2eb2f8
BuildRequires: perl(File::pushd), perl(File::Temp), perl(File::Copy)
2eb2f8
BuildRequires: perl(File::Which)
2eb2f8
BuildRequires: python3-devel >= 3.6
2eb2f8
BuildRequires: python3-pytest
2eb2f8
BuildRequires: make
2eb2f8
2eb2f8
Conflicts: openssl < 1.1.1h
2eb2f8
Conflicts: nss < 3.44.0
2eb2f8
Conflicts: libreswan < 3.28
2eb2f8
Conflicts: openssh < 8.5p1
2eb2f8
Conflicts: gnutls < 3.7.2-3
2eb2f8
2eb2f8
%description
2eb2f8
This package provides pre-built configuration files with
2eb2f8
cryptographic policies for various cryptographic back-ends,
2eb2f8
such as SSL/TLS libraries.
2eb2f8
2eb2f8
%package scripts
2eb2f8
Summary: Tool to switch between crypto policies
2eb2f8
Requires: %{name} = %{version}-%{release}
2eb2f8
Recommends: (grubby if kernel)
2eb2f8
Provides: fips-mode-setup = %{version}-%{release}
2eb2f8
2eb2f8
%description scripts
2eb2f8
This package provides a tool update-crypto-policies, which applies
2eb2f8
the policies provided by the crypto-policies package. These can be
2eb2f8
either the pre-built policies from the base package or custom policies
2eb2f8
defined in simple policy definition files.
2eb2f8
2eb2f8
The package also provides a tool fips-mode-setup, which can be used
2eb2f8
to enable or disable the system FIPS mode.
2eb2f8
2eb2f8
%prep
2eb2f8
%setup -q -n fedora-crypto-policies-%{git_commit_hash}-%{git_commit}
2eb2f8
%autopatch -p1
2eb2f8
2eb2f8
%build
2eb2f8
export OLD_GNUTLS=1  # FIXME: remove once gnutls-3.7.2-3 is in buildroot
2eb2f8
%make_build
2eb2f8
2eb2f8
%install
2eb2f8
mkdir -p -m 755 %{buildroot}%{_datarootdir}/crypto-policies/
2eb2f8
mkdir -p -m 755 %{buildroot}%{_datarootdir}/crypto-policies/back-ends/
2eb2f8
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/crypto-policies/back-ends/
2eb2f8
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/crypto-policies/state/
2eb2f8
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/crypto-policies/local.d/
2eb2f8
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/crypto-policies/policies/
2eb2f8
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/crypto-policies/policies/modules/
2eb2f8
mkdir -p -m 755 %{buildroot}%{_bindir}
2eb2f8
2eb2f8
make DESTDIR=%{buildroot} DIR=%{_datarootdir}/crypto-policies MANDIR=%{_mandir} %{?_smp_mflags} install
2eb2f8
install -p -m 644 default-config %{buildroot}%{_sysconfdir}/crypto-policies/config
2eb2f8
touch %{buildroot}%{_sysconfdir}/crypto-policies/state/current
2eb2f8
touch %{buildroot}%{_sysconfdir}/crypto-policies/state/CURRENT.pol
2eb2f8
2eb2f8
# Drop pre-generated EMPTY policy, we do not need to ship it
2eb2f8
rm -rf %{buildroot}%{_datarootdir}/crypto-policies/EMPTY
2eb2f8
2eb2f8
# Create back-end configs for mounting with read-only /etc/
2eb2f8
for d in LEGACY DEFAULT FUTURE FIPS ; do
2eb2f8
    mkdir -p -m 755 %{buildroot}%{_datarootdir}/crypto-policies/back-ends/$d
2eb2f8
    for f in %{buildroot}%{_datarootdir}/crypto-policies/$d/* ; do
2eb2f8
        ln $f %{buildroot}%{_datarootdir}/crypto-policies/back-ends/$d/$(basename $f .txt).config
2eb2f8
    done
2eb2f8
done
2eb2f8
2eb2f8
for f in %{buildroot}%{_datarootdir}/crypto-policies/DEFAULT/* ; do
2eb2f8
    ln -sf %{_datarootdir}/crypto-policies/DEFAULT/$(basename $f) %{buildroot}%{_sysconfdir}/crypto-policies/back-ends/$(basename $f .txt).config
2eb2f8
done
2eb2f8
2eb2f8
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/crypto-policies/python
2eb2f8
2eb2f8
%check
2eb2f8
make ON_RHEL9=1 test %{?_smp_mflags}
2eb2f8
2eb2f8
%post -p <lua>
2eb2f8
if not posix.access("%{_sysconfdir}/crypto-policies/config") then
2eb2f8
    local policy = "DEFAULT"
2eb2f8
    local cf = io.open("/proc/sys/crypto/fips_enabled", "r")
2eb2f8
    if cf then
2eb2f8
        if cf:read() == "1" then
2eb2f8
            policy = "FIPS"
2eb2f8
        end
2eb2f8
        cf:close()
2eb2f8
    end
2eb2f8
    cf = io.open("%{_sysconfdir}/crypto-policies/config", "w")
2eb2f8
    if cf then
2eb2f8
        cf:write(policy.."\n")
2eb2f8
        cf:close()
2eb2f8
    end
2eb2f8
    cf = io.open("%{_sysconfdir}/crypto-policies/state/current", "w")
2eb2f8
    if cf then
2eb2f8
        cf:write(policy.."\n")
2eb2f8
        cf:close()
2eb2f8
    end
2eb2f8
    local policypath = "%{_datarootdir}/crypto-policies/"..policy
2eb2f8
    for fn in posix.files(policypath) do
2eb2f8
        if fn ~= "." and fn ~= ".." then
2eb2f8
            local backend = fn:gsub(".*/", ""):gsub("%%..*", "")
2eb2f8
            local cfgfn = "%{_sysconfdir}/crypto-policies/back-ends/"..backend..".config"
2eb2f8
            posix.unlink(cfgfn)
2eb2f8
            posix.symlink(policypath.."/"..fn, cfgfn)
2eb2f8
        end
2eb2f8
    end
2eb2f8
end
2eb2f8
2eb2f8
%posttrans scripts
2eb2f8
%{_bindir}/update-crypto-policies --no-check >/dev/null 2>/dev/null || :
2eb2f8
2eb2f8
2eb2f8
%files
2eb2f8
2eb2f8
%dir %{_sysconfdir}/crypto-policies/
2eb2f8
%dir %{_sysconfdir}/crypto-policies/back-ends/
2eb2f8
%dir %{_sysconfdir}/crypto-policies/state/
2eb2f8
%dir %{_sysconfdir}/crypto-policies/local.d/
2eb2f8
%dir %{_sysconfdir}/crypto-policies/policies/
2eb2f8
%dir %{_sysconfdir}/crypto-policies/policies/modules/
2eb2f8
%dir %{_datarootdir}/crypto-policies/
2eb2f8
2eb2f8
%ghost %config(missingok,noreplace) %{_sysconfdir}/crypto-policies/config
2eb2f8
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/gnutls.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/openssl.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/opensslcnf.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/openssh.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/opensshserver.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/nss.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/bind.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/java.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/javasystem.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/krb5.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/libreswan.config
2eb2f8
%ghost %config(missingok,noreplace) %verify(not mode) %{_sysconfdir}/crypto-policies/back-ends/libssh.config
2eb2f8
# %verify(not mode) comes from the fact
2eb2f8
# these turn into symlinks and back to regular files at will, see bz1898986
2eb2f8
2eb2f8
%ghost %{_sysconfdir}/crypto-policies/state/current
2eb2f8
%ghost %{_sysconfdir}/crypto-policies/state/CURRENT.pol
2eb2f8
2eb2f8
%{_mandir}/man7/crypto-policies.7*
2eb2f8
%{_datarootdir}/crypto-policies/LEGACY
2eb2f8
%{_datarootdir}/crypto-policies/DEFAULT
2eb2f8
%{_datarootdir}/crypto-policies/FUTURE
2eb2f8
%{_datarootdir}/crypto-policies/FIPS
2eb2f8
%{_datarootdir}/crypto-policies/back-ends
2eb2f8
%{_datarootdir}/crypto-policies/default-config
2eb2f8
%{_datarootdir}/crypto-policies/reload-cmds.sh
2eb2f8
%{_datarootdir}/crypto-policies/policies
2eb2f8
2eb2f8
%license COPYING.LESSER
2eb2f8
2eb2f8
%files scripts
2eb2f8
%{_bindir}/update-crypto-policies
2eb2f8
%{_mandir}/man8/update-crypto-policies.8*
2eb2f8
%{_datarootdir}/crypto-policies/python
2eb2f8
2eb2f8
%{_bindir}/fips-mode-setup
2eb2f8
%{_bindir}/fips-finish-install
2eb2f8
%{_mandir}/man8/fips-mode-setup.8*
2eb2f8
%{_mandir}/man8/fips-finish-install.8*
2eb2f8
2eb2f8
%changelog
2eb2f8
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 20210707-2.git29f6c0b
2eb2f8
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
2eb2f8
  Related: rhbz#1991688
2eb2f8
2eb2f8
* Wed Jul 07 2021 Alexander Sosedkin <asosedkin@redhat.com> - 20210707-1.git29f6c0b
2eb2f8
- gnutls: explicitly enable ECDSA-SECPNNNR1-SHANNN
2eb2f8
- packaging: adapt to the RHEL-9 %check-time testing tools availability
2eb2f8
2eb2f8
* Mon Jun 28 2021 Alexander Sosedkin <asosedkin@redhat.com> - 20210628-1.gitdd7d273
2eb2f8
- implement scoped policies, e.g., cipher@SSH = ...
2eb2f8
- implement algorithm globbing, e.g., cipher@SSH = -*-CBC
2eb2f8
- deprecate derived properties:
2eb2f8
  tls_cipher, ssh_cipher, ssh_group, ike_protocol, sha1_in_dnssec
2eb2f8
- deprecate unscoped form of protocol property
2eb2f8
- openssl: set MinProtocol / MaxProtocol separately for TLS and DTLS
2eb2f8
- openssh: use PubkeyAcceptedAlgorithms instead of PubkeyAcceptedKeyTypes
2eb2f8
- libssh: respect ssh_certs
2eb2f8
- restrict FIPS:OSPP further
2eb2f8
- improve Python 3.10 compatibility
2eb2f8
- update documentation
2eb2f8
- expand upstream test coverage
2eb2f8
- FUTURE: disable CBC ciphers for all backends but krb5
2eb2f8
- openssl: LEGACY must have SECLEVEL=1, enabling SHA1
2eb2f8
- disable DHE-DSS in LEGACY
2eb2f8
- bump LEGACY key size requirements from 1023 to 1024
2eb2f8
- add javasystem backend
2eb2f8
- *ssh: condition ecdh-sha2-nistp384 on SECP384R1
2eb2f8
- set %verify(not mode) for backend sometimes-symlinks-sometimes-not
2eb2f8
- gnutls: use allowlisting
2eb2f8
2eb2f8
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 20210218-3.git2246c55
2eb2f8
- Rebuilt for RHEL 9 BETA for openssl 3.0
2eb2f8
  Related: rhbz#1971065
2eb2f8
2eb2f8
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 20210218-2.git2246c55
2eb2f8
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
2eb2f8
2eb2f8
* Thu Feb 18 2021 Alexander Sosedkin <asosedkin@redhat.com> - 20210218-1.git2246c55
2eb2f8
- require 2048 bit params in LEGACY
2eb2f8
- require TLSv1.2/DTLSv1.2 in all policies
2eb2f8
- disable DSA
2eb2f8
- disable 3DES in LEGACY
2eb2f8
- drop FFDHE-1024 from LEGACY
2eb2f8
- drop (sub)policies we're not going to offer in RHEL-9
2eb2f8
2eb2f8
* Sat Feb 13 2021 Alexander Sosedkin <asosedkin@redhat.com> - 20210213-1.git5c710c0
2eb2f8
- exclude RC4 from LEGACY
2eb2f8
- introduce rc4_md5_in_krb5 to narrow AD_SUPPORT's impact
2eb2f8
- an assortment of small fixes
2eb2f8
2eb2f8
* Wed Jan 27 2021 Alexander Sosedkin <asosedkin@redhat.com> - 20210127-2.gitb21c811
2eb2f8
- fix comparison in %post lua scriptlet
2eb2f8
2eb2f8
* Wed Jan 27 2021 Alexander Sosedkin <asosedkin@redhat.com> - 20210127-1.gitb21c811
2eb2f8
- don't create /etc/crypto-policies/back-ends/.config in %post
2eb2f8
2eb2f8
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20210118-2.gitb21c811
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2eb2f8
2eb2f8
* Mon Jan 18 2021 Alexander Sosedkin <asosedkin@redhat.com> - 20210118-1.gitb21c811
2eb2f8
- output sigalgs required by nss >=3.59 (or 3.60 in Fedora case)
2eb2f8
- bump Python requirement to 3.6
2eb2f8
2eb2f8
* Tue Dec 15 2020 Alexander Sosedkin <asosedkin@redhat.com> - 20201215-1.giteb57e00
2eb2f8
- Kerberos 5: Fix policy generator to account for macs
2eb2f8
2eb2f8
* Tue Dec 08 2020 Alexander Sosedkin <asosedkin@redhat.com> - 20201208-1.git70def9f
2eb2f8
- add AES-192 support (non-TLS scenarios)
2eb2f8
- add documentation of the --check option
2eb2f8
2eb2f8
* Wed Sep 23 2020 Tomáš Mráz <tmraz@redhat.com> - 20200918-1.git85dccc5
2eb2f8
- add RSA-PSK algorithm support
2eb2f8
- add GOST algorithms support for openssl
2eb2f8
- add GOST-ONLY policy and fix GOST subpolicy
2eb2f8
- update-crypto-policies: added --check parameter to perform
2eb2f8
  comparison of actual configuration files with the policy
2eb2f8
2eb2f8
* Thu Aug 13 2020 Tomáš Mráz <tmraz@redhat.com> - 20200813-1.git66d4068
2eb2f8
- libreswan: enable X25519 group
2eb2f8
- libreswan: properly disable FFDH in ECDHE-ONLY subpolicy
2eb2f8
- libreswan: add generation of authby parameter based on sign property
2eb2f8
- libssh: Add diffie-hellman-group14-sha256
2eb2f8
2eb2f8
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20200702-2.gitc40cede
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2eb2f8
2eb2f8
* Mon Jul 13 2020 Tomáš Mráz <tmraz@redhat.com> - 20200702-1.gitc40cede
2eb2f8
- OSPP subpolicy: remove AES-CCM
2eb2f8
- openssl: handle the AES-CCM removal properly
2eb2f8
- openssh/libssh: drop CBC ciphersuites from DEFAULT and FIPS
2eb2f8
- add AD-SUPPORT subpolicy which re-enables RC4 for Kerberos
2eb2f8
- gnutls: disallow X448/ED448 in FIPS policy
2eb2f8
- merge fips-mode-setup package into the scripts subpackage
2eb2f8
2eb2f8
* Thu Jun 25 2020 Tomáš Mráz <tmraz@redhat.com> - 20200625-1.gitb298a9e
2eb2f8
- DEFAULT policy: Drop DH < 2048 bits, TLS 1.0, 1.1, SHA-1
2eb2f8
- make the NEXT policy just an alias for DEFAULT as they are now identical
2eb2f8
- policies: introduce sha1_in_dnssec value for BIND
2eb2f8
- add SHA1 and FEDORA32 policy modules to provide backwards compatibility
2eb2f8
  they can be applied as DEFAULT:SHA1 or DEFAULT:FEDORA32
2eb2f8
- avoid duplicates of list items in resulting policy
2eb2f8
2eb2f8
* Wed Jun 24 2020 Tomáš Mráz <tmraz@redhat.com> - 20200619-1.git781bbd4
2eb2f8
- gnutls: enable DSA signatures in LEGACY
2eb2f8
2eb2f8
* Wed Jun 10 2020 Tomáš Mráz <tmraz@redhat.com> - 20200610-1.git7f9d474
2eb2f8
- openssh server: new format of configuration to be loaded by config include
2eb2f8
- fallback to FIPS policy instead of the default-config in FIPS mode
2eb2f8
- java: Document properly how to override the crypto policy
2eb2f8
- reorder the signature algorithms to follow the order in default openssl list
2eb2f8
2eb2f8
* Tue Jun  9 2020 Tomáš Mráz <tmraz@redhat.com> - 20200527-5.gitb234a47
2eb2f8
- make the post script work in environments where /proc/sys is not available
2eb2f8
2eb2f8
* Fri May 29 2020 Tomáš Mráz <tmraz@redhat.com> - 20200527-4.gitb234a47
2eb2f8
- move the symlink fix-up script to post and fix it
2eb2f8
2eb2f8
* Fri May 29 2020 Tomáš Mráz <tmraz@redhat.com> - 20200527-3.gitb234a47
2eb2f8
- automatically set up FIPS policy in FIPS mode on first install
2eb2f8
2eb2f8
* Thu May 28 2020 Tomáš Mráz <tmraz@redhat.com> - 20200527-2.gitb234a47
2eb2f8
- require the base package from scripts subpackage
2eb2f8
- add Recommends for fips-mode-setup to the scripts subpackage
2eb2f8
2eb2f8
* Wed May 27 2020 Tomáš Mráz <tmraz@redhat.com> - 20200527-1.gitb234a47
2eb2f8
- explicitly enable DHE-DSS in gnutls config if enabled in policy
2eb2f8
- use grubby with --update-kernel=ALL to avoid breaking kernelopts
2eb2f8
- OSPP subpolicy: Allow GCM for SSH protocol
2eb2f8
- openssh: Support newly standardized ECDHE-GSS and DHE-GSS key exchanges
2eb2f8
- if the policy in FIPS mode is not a FIPS policy print a message
2eb2f8
- openssl: Add SignatureAlgorithms support
2eb2f8
2eb2f8
* Thu Mar 12 2020 Tomáš Mráz <tmraz@redhat.com> - 20200312-1.git3ae59d2
2eb2f8
- custom crypto policies: enable completely overriding contents of the list
2eb2f8
  value
2eb2f8
- added ECDHE-ONLY.pmod policy module example
2eb2f8
- openssh: make LEGACY policy to prefer strong public key algorithms
2eb2f8
- openssh: support FIDO/U2F (with the exception of FIPS policy)
2eb2f8
- gnutls: add support for GOST ciphers
2eb2f8
- various python code cleanups
2eb2f8
- update-crypto-policies: dump the current policy to
2eb2f8
  /etc/crypto-policies/state/CURRENT.pol
2eb2f8
2eb2f8
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20191128-5.gitcd267a5
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2eb2f8
2eb2f8
* Tue Jan 14 2020 Tomáš Mráz <tmraz@redhat.com> - 20191128-4.gitcd267a5
2eb2f8
- the base package must ship the DEFAULT policy config symlinks in case
2eb2f8
  the scripts package is not installed via the weak dependency
2eb2f8
2eb2f8
* Tue Jan 07 2020 Andrew Jeddeloh <ajeddelo@redhat.com> 20191128-3.gitcd267a5
2eb2f8
- split scripts into their own subpackage. See
2eb2f8
  https://github.com/coreos/fedora-coreos-tracker/issues/280 for more details.
2eb2f8
2eb2f8
* Mon Dec 16 2019 Tomáš Mráz <tmraz@redhat.com> - 20191128-2.gitcd267a5
2eb2f8
- move the pre-built .config files to /usr/share/crypto-policies/back-ends
2eb2f8
2eb2f8
* Thu Nov 28 2019 Tomáš Mráz <tmraz@redhat.com> - 20191128-1.gitcd267a5
2eb2f8
- add FIPS subpolicy for OSPP
2eb2f8
- fips-mode-setup: do not reload daemons when changing policy
2eb2f8
- fips-mode-setup: gracefully handle OSTree-based systems
2eb2f8
- gnutls: use new configuration file format
2eb2f8
2eb2f8
* Tue Oct 29 2019 Tomáš Mráz <tmraz@redhat.com> - 20191002-1.gitc93dc99
2eb2f8
- update-crypto-policies: fix handling of list operations in policy modules
2eb2f8
- update-crypto-policies: fix updating of the current policy marker
2eb2f8
- fips-mode-setup: fixes related to containers and non-root execution
2eb2f8
2eb2f8
* Tue Sep 24 2019 Tomáš Mráz <tmraz@redhat.com> - 20190816-4.gitbb9bf99
2eb2f8
- add the /etc/crypto-policies/state directory
2eb2f8
2eb2f8
* Tue Sep 10 2019 Tomáš Mráz <tmraz@redhat.com> - 20190816-3.gitbb9bf99
2eb2f8
- make it possible to use fips-mode-setup --check without dracut
2eb2f8
- add .config symlinks so a crypto policy can be set with read-only
2eb2f8
  /etc by bind-mounting /usr/share/crypto-policies/<policy> to
2eb2f8
  /etc/crypto-policies/back-ends
2eb2f8
2eb2f8
* Mon Aug 19 2019 Tomáš Mráz <tmraz@redhat.com> - 20190816-2.gitbb9bf99
2eb2f8
- run the update-crypto-policies in posttrans
2eb2f8
- the current config should work fine with OpenSSL >= 7.9p1
2eb2f8
- fix the python bytecompilation
2eb2f8
2eb2f8
* Fri Aug 16 2019 Tomáš Mráz <tmraz@redhat.com> - 20190816-1.gitbb9bf99
2eb2f8
- custom crypto policies support
2eb2f8
- openssh: Support new configuration option CASignatureAlgorithms
2eb2f8
- libssh: Add libssh as supported backend
2eb2f8
- multiple fixes in fips-mode-setup, BLS support
2eb2f8
2eb2f8
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20190527-2.git0b3add8
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2eb2f8
2eb2f8
* Mon May 27 2019 Tomáš Mráz <tmraz@redhat.com> - 20190211-1.git0b3add8
2eb2f8
- libreswan: coalesce proposals to avoid IKE packet fragmentation
2eb2f8
- openssh: add missing curve25519-sha256 to the key exchange list
2eb2f8
- nss: map X25519 to CURVE25519
2eb2f8
2eb2f8
* Thu Apr 25 2019 Tomáš Mráz <tmraz@redhat.com> - 20190211-4.gite3eacfc
2eb2f8
- do not fail in the Java test if the EMPTY policy is not really empty
2eb2f8
2eb2f8
* Thu Mar  7 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 20190211-3.gite3eacfc
2eb2f8
- Split out fips-mode-setup into separate subpackage
2eb2f8
2eb2f8
* Mon Feb 11 2019 Tomáš Mráz <tmraz@redhat.com> - 20190211-2.gite3eacfc
2eb2f8
- add crypto-policies.7 manual page
2eb2f8
- Java: Fix FIPS and FUTURE policy to allow RSA certificates in TLS
2eb2f8
- cleanup duplicate and incorrect information from update-crypto-policies.8
2eb2f8
  manual page
2eb2f8
- update-crypto-policies: Fix endless loop
2eb2f8
- update-crypto-policies: Add warning about the need of system restart
2eb2f8
- FUTURE: Add mistakenly ommitted EDDSA-ED25519 signature algorithm
2eb2f8
- openssh: Add missing SHA2 variants of RSA certificates to the policy
2eb2f8
- return exit code 2 when printing usage from all the tools
2eb2f8
- update-crypto-policies: add --no-reload option for testing
2eb2f8
2eb2f8
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20181122-2.git70769d9
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2eb2f8
2eb2f8
* Thu Nov 22 2018 Tomáš Mráz <tmraz@redhat.com> - 20181122-1.git70769d9
2eb2f8
- update-crypto-policies: fix error on multiple matches in local.d
2eb2f8
2eb2f8
* Tue Nov 20 2018 Tomáš Mráz <tmraz@redhat.com> - 20181120-1.gitd2b3bc4
2eb2f8
- Print warning when update-crypto-policies --set is used in the FIPS mode
2eb2f8
- Java: Add 3DES and RC4 to legacy algorithms in LEGACY policy
2eb2f8
- OpenSSL: Properly disable non AEAD and AES128 ciphersuites in FUTURE
2eb2f8
- libreswan: Add chacha20_poly1305 to all policies and drop ikev1 from LEGACY
2eb2f8
2eb2f8
* Fri Oct 26 2018 Tomáš Mráz <tmraz@redhat.com> - 20181026-1.gitd42aaa6
2eb2f8
- Fix regression in discovery of additional configuration
2eb2f8
- NSS: add DSA keyword to LEGACY policy
2eb2f8
- GnuTLS: Add 3DES and RC4 to LEGACY policy
2eb2f8
2eb2f8
* Tue Sep 25 2018 Tomáš Mráz <tmraz@redhat.com> - 20180925-1.git71ca85f
2eb2f8
- Use Recommends instead of Requires for grubby
2eb2f8
- Revert setting of HostKeyAlgorithms for ssh client for now
2eb2f8
2eb2f8
* Fri Sep 21 2018 Tomáš Mráz <tmraz@redhat.com> - 20180921-2.git391ed9f
2eb2f8
- Fix requires for grubby
2eb2f8
2eb2f8
* Fri Sep 21 2018 Tomáš Mráz <tmraz@redhat.com> - 20180921-1.git391ed9f
2eb2f8
- OpenSSH: Generate policy for sign algorithms
2eb2f8
- Enable >= 255 bits EC curves in FUTURE policy
2eb2f8
- OpenSSH: Add group1 key exchanges in LEGACY policy
2eb2f8
- NSS: Add SHA224 to hash lists
2eb2f8
- Print warning when update-crypto-policies --set FIPS is used
2eb2f8
- fips-mode-setup: Kernel boot options are now modified with grubby
2eb2f8
2eb2f8
* Thu Aug  2 2018 Tomáš Mráz <tmraz@redhat.com> - 20180802-1.git1626592
2eb2f8
- Introduce NEXT policy
2eb2f8
2eb2f8
* Mon Jul 30 2018 Tomáš Mráz <tmraz@redhat.com> - 20180730-1.git9d9f21d
2eb2f8
- Add OpenSSL configuration file include support
2eb2f8
2eb2f8
* Tue Jul 24 2018 Tomáš Mráz <tmraz@redhat.com> - 20180723-1.gitdb825c0
2eb2f8
- Initial FIPS mode setup support
2eb2f8
- NSS: Add tests for the generated policy
2eb2f8
- Enable TLS-1.3 if available in the respective TLS library
2eb2f8
- Enable SHA1 in certificates in LEGACY policy
2eb2f8
- Disable CAMELLIA
2eb2f8
- libreswan: Multiple bug fixes in policies
2eb2f8
2eb2f8
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180425-6.git6ad4018
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2eb2f8
2eb2f8
* Fri May 18 2018 Björn Esser <besser82@fedoraproject.org> - 20180425-5.git6ad4018
2eb2f8
- Fix patch0
2eb2f8
2eb2f8
* Fri May 18 2018 Björn Esser <besser82@fedoraproject.org> - 20180425-4.git6ad4018
2eb2f8
- Remove Requires: systemd
2eb2f8
- Add Patch to silence warnings from reload-cmds
2eb2f8
2eb2f8
* Thu May 17 2018 Björn Esser <besser82@fedoraproject.org> - 20180425-3.git6ad4018
2eb2f8
- Requires: systemd should be added too
2eb2f8
2eb2f8
* Thu May 17 2018 Björn Esser <besser82@fedoraproject.org> - 20180425-2.git6ad4018
2eb2f8
- Add Requires(post): systemd to fix:
2eb2f8
  crypto-policies/reload-cmds.sh: line 1: systemctl: command not found
2eb2f8
2eb2f8
* Wed Apr 25 2018 Tomáš Mráz <tmraz@redhat.com> - 20180425-1.git6ad4018
2eb2f8
- Restart/reload only enabled services
2eb2f8
- Do not enable PSK ciphersuites by default in gnutls and openssl
2eb2f8
- krb5: fix when more than 2048 bits keys are required
2eb2f8
- Fix discovery of additional configurations #1564595
2eb2f8
- Fix incorrect ciphersuite setup for libreswan
2eb2f8
2eb2f8
* Tue Mar  6 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20180306-1.gitaea6928
2eb2f8
- Updated policy to reduce DH parameter size on DEFAULT level, taking into
2eb2f8
  account feedback in #1549242,1#534532.
2eb2f8
- Renamed openssh-server.config to opensshserver.config to reduce conflicts
2eb2f8
  when local.d/ appending is used.
2eb2f8
2eb2f8
* Tue Feb 27 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20180227-1.git0ce1729
2eb2f8
- Updated to include policies for libreswan
2eb2f8
2eb2f8
* Mon Feb 12 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20180112-1.git386e3fe
2eb2f8
- Updated to apply the settings as in StrongCryptoSettings project. The restriction
2eb2f8
  to TLS1.2, is not yet applied as we have no method to impose that in openssl.
2eb2f8
  https://fedoraproject.org/wiki/Changes/StrongCryptoSettings
2eb2f8
2eb2f8
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 20171115-3.git921600e
2eb2f8
- Escape macros in %%changelog
2eb2f8
2eb2f8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20171115-2.git921600e
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2eb2f8
2eb2f8
* Wed Nov 15 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20171115-1.git921600e
2eb2f8
- Updated openssh policies for new openssh without rc4
2eb2f8
- Removed policies for compat-gnutls28
2eb2f8
2eb2f8
* Wed Aug 23 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170823-1.git8d18c27
2eb2f8
- Updated gnutls policies for 3.6.0
2eb2f8
2eb2f8
* Wed Aug 16 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170816-1.git2618a6c
2eb2f8
- Updated to latest upstream
2eb2f8
- Restarts openssh server on policy update
2eb2f8
2eb2f8
* Wed Aug  2 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170802-1.git9300620
2eb2f8
- Updated to latest upstream
2eb2f8
- Reloads openssh server on policy update
2eb2f8
2eb2f8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170606-4.git7c32281
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2eb2f8
2eb2f8
* Tue Jul 25 2017 Igor Gnatenko <ignatenko@redhat.com> - 20170606-3.git7c32281
2eb2f8
- Restore Requires(post)
2eb2f8
2eb2f8
* Mon Jul 24 2017 Troy Dawson <tdawson@redhat.com> 20170606-2.git7c32281
2eb2f8
- perl dependency renamed to perl-interpreter <ppisar@redhat.com>
2eb2f8
- remove useless Requires(post) <ignatenko@redhat.com>
2eb2f8
- Fix path of libdir in generate-policies.pl (#1474442) <tdawson@redhat.com>
2eb2f8
2eb2f8
* Tue Jun  6 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170606-1.git7c32281
2eb2f8
- Updated to latest upstream
2eb2f8
- Allows gnutls applications in LEGACY mode, to use certificates of 768-bits
2eb2f8
2eb2f8
* Wed May 31 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170531-1.gitce0df7b
2eb2f8
- Updated to latest upstream
2eb2f8
- Added new kerberos key types
2eb2f8
2eb2f8
* Sat Apr 01 2017 Björn Esser <besser82@fedoraproject.org> - 20170330-3.git55b66da
2eb2f8
- Add Requires for update-crypto-policies in %%post
2eb2f8
2eb2f8
* Fri Mar 31 2017 Petr Å abata <contyk@redhat.com> - 20170330-2.git55b66da
2eb2f8
- update-crypto-policies uses gred and sed, require them
2eb2f8
2eb2f8
* Thu Mar 30 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20170330-1-git55b66da
2eb2f8
- GnuTLS policies include RC4 in legacy mode (#1437213)
2eb2f8
2eb2f8
* Fri Feb 17 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160214-2-gitf3018dd
2eb2f8
- Added openssh file
2eb2f8
2eb2f8
* Tue Feb 14 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160214-1-gitf3018dd
2eb2f8
- Updated policies for BIND to address #1421875
2eb2f8
2eb2f8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20161111-2.gita2363ce
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2eb2f8
2eb2f8
* Fri Nov 11 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20161111-1-gita2363ce
2eb2f8
- Include OpenJDK documentation.
2eb2f8
2eb2f8
* Tue Sep 27 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160926-2-git08b5501
2eb2f8
- Improved messages on error.
2eb2f8
2eb2f8
* Mon Sep 26 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160926-1-git08b5501
2eb2f8
- Added support for openssh client policy
2eb2f8
2eb2f8
* Wed Sep 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160921-1-git75b9b04
2eb2f8
- Updated with latest upstream.
2eb2f8
2eb2f8
* Thu Jul 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160718-2-gitdb5ca59
2eb2f8
- Added support for administrator overrides in generated policies in local.d
2eb2f8
2eb2f8
* Thu Jul 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160718-1-git340cb69
2eb2f8
- Fixed NSS policy generation to include allowed hash algorithms
2eb2f8
2eb2f8
* Wed Jul 20 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160718-1-gitcaa4a8d
2eb2f8
- Updated to new version with auto-generated policies
2eb2f8
2eb2f8
* Mon May 16 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20160516-1-git8f69c35
2eb2f8
- Generate policies for NSS
2eb2f8
- OpenJDK policies were updated for opendjk 8
2eb2f8
2eb2f8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20151104-2.gitf1cba5f
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2eb2f8
2eb2f8
* Wed Nov  4 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20151104-1-gitcf1cba5f
2eb2f8
- Generate policies for compat-gnutls28 (#1277790)
2eb2f8
2eb2f8
* Fri Oct 23 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20151005-2-gitc8452f8
2eb2f8
- Generated files are put in a %%ghost directive
2eb2f8
2eb2f8
* Mon Oct  5 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20151005-1-gitc8452f8
2eb2f8
- Updated policies from upstream
2eb2f8
- Added support for the generation of libkrb5 policy
2eb2f8
- Added support for the generation of openjdk policy
2eb2f8
2eb2f8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20150518-2.gitffe885e
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2eb2f8
2eb2f8
* Mon May 18 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20150518-1-gitffe885e
2eb2f8
- Updated policies to remove SSL 3.0 and RC4 (#1220679)
2eb2f8
2eb2f8
* Fri Mar  6 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20150305-3-git2eeb03b
2eb2f8
- Added make check
2eb2f8
2eb2f8
* Fri Mar  6 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20150305-2-git44afaa1
2eb2f8
- Removed support for SECLEVEL (#1199274)
2eb2f8
2eb2f8
* Thu Mar  5 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20150305-1-git098a8a6
2eb2f8
- Include AEAD ciphersuites in gnutls (#1198979)
2eb2f8
2eb2f8
* Sun Jan 25 2015 Peter Robinson <pbrobinson@fedoraproject.org> 20150115-3-git9ef7493
2eb2f8
- Bump release so lastest git snapshot is newer NVR
2eb2f8
2eb2f8
* Thu Jan 15 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20150115-2-git9ef7493
2eb2f8
- Updated to newest upstream version.
2eb2f8
- Includes bind policies (#1179925)
2eb2f8
2eb2f8
* Tue Dec 16 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20141124-2-gitd4aa178
2eb2f8
- Corrected typo in gnutls' future policy (#1173886)
2eb2f8
2eb2f8
* Mon Nov 24 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20141124-1-gitd4aa178
2eb2f8
- re-enable SSL 3.0 (until its removal is coordinated with a Fedora change request)
2eb2f8
2eb2f8
* Thu Nov 20 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20141120-1-git9a26a5b
2eb2f8
- disable SSL 3.0 (doesn't work in openssl)
2eb2f8
2eb2f8
* Fri Sep 05 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140905-1-git4649b7d
2eb2f8
- enforce the acceptable TLS versions in openssl
2eb2f8
2eb2f8
* Wed Aug 27 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140827-1-git4e06f1d
2eb2f8
- fix issue with RC4 being disabled in DEFAULT settings for openssl
2eb2f8
2eb2f8
* Thu Aug 14 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140814-1-git80e1e98
2eb2f8
- fix issue in post script run on upgrade (#1130074)
2eb2f8
2eb2f8
* Tue Aug 12 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140812-1-gitb914bfd
2eb2f8
- updated crypto-policies from repository
2eb2f8
2eb2f8
* Fri Jul 11 2014 Tom Callaway <spot@fedoraproject.org> - 20140708-2-git3a7ae3f
2eb2f8
- fix license handling
2eb2f8
2eb2f8
* Tue Jul 08 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140708-1-git3a7ae3f
2eb2f8
- updated crypto-policies from repository
2eb2f8
2eb2f8
* Fri Jun 20 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 20140620-1-gitdac1524
2eb2f8
- updated crypto-policies from repository
2eb2f8
- changed versioning
2eb2f8
2eb2f8
* Thu Jun 12 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-7-20140612gita2fa0c6
2eb2f8
- updated crypto-policies from repository
2eb2f8
2eb2f8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-7.20140522gita50bad2
2eb2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2eb2f8
2eb2f8
* Thu May 29 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-6-20140522gita50bad2
2eb2f8
- Require(post) coreutils (#1100335).
2eb2f8
2eb2f8
* Tue May 27 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-5-20140522gita50bad2
2eb2f8
- Require coreutils.
2eb2f8
2eb2f8
* Thu May 22 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-4-20140522gita50bad2
2eb2f8
- Install the default configuration file.
2eb2f8
2eb2f8
* Wed May 21 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-3-20140520git81364e4
2eb2f8
- Run update-crypto-policies after installation.
2eb2f8
2eb2f8
* Tue May 20 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-2-20140520git81364e4
2eb2f8
- Updated spec based on comments by Petr Lautrbach.
2eb2f8
2eb2f8
* Mon May 19 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.9-1-20140519gitf15621a
2eb2f8
- Initial package build
2eb2f8