Use /dev/urandom for generation of rndc.key (#1079799
Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
d18b5e4f2e
commit
ed837c4f03
|
@ -30,7 +30,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
|
||||||
Name: bind
|
Name: bind
|
||||||
License: ISC
|
License: ISC
|
||||||
Version: 9.9.5
|
Version: 9.9.5
|
||||||
Release: 4%{?PATCHVER}%{?PREVER}%{?dist}
|
Release: 5%{?PATCHVER}%{?PREVER}%{?dist}
|
||||||
Epoch: 32
|
Epoch: 32
|
||||||
Url: http://www.isc.org/products/BIND/
|
Url: http://www.isc.org/products/BIND/
|
||||||
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
@ -930,6 +930,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 09 2014 Tomas Hozza <thozza@redhat.com> 32:9.9.5-5
|
||||||
|
- Use /dev/urandom for generation of rndc.key (#1079799)
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 32:9.9.5-4
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 32:9.9.5-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
if [ ! -s /etc/rndc.key -a ! -s /etc/rndc.conf ]; then
|
if [ ! -s /etc/rndc.key -a ! -s /etc/rndc.conf ]; then
|
||||||
echo -n $"Generating /etc/rndc.key:"
|
echo -n $"Generating /etc/rndc.key:"
|
||||||
if /usr/sbin/rndc-confgen -a > /dev/null 2>&1; then
|
if /usr/sbin/rndc-confgen -a -r /dev/urandom > /dev/null 2>&1; then
|
||||||
chmod 640 /etc/rndc.key
|
chmod 640 /etc/rndc.key
|
||||||
chown root.named /etc/rndc.key
|
chown root.named /etc/rndc.key
|
||||||
[ -x /sbin/restorecon ] && /sbin/restorecon /etc/rndc.key
|
[ -x /sbin/restorecon ] && /sbin/restorecon /etc/rndc.key
|
||||||
|
|
Loading…
Reference in New Issue