update 1.9.15
This commit is contained in:
parent
4c014c6c93
commit
75560595a9
@ -0,0 +1,50 @@
|
|||||||
|
From a4b69d65a8dfc5a9f52ff8505c7f58dcf8b9234f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jirka Hladky <jhladky@redhat.com>
|
||||||
|
Date: Wed, 3 Nov 2021 14:38:11 +0100
|
||||||
|
Subject: [PATCH] Fix: haveged cannot be run as an application if also running
|
||||||
|
as a daemon
|
||||||
|
|
||||||
|
---
|
||||||
|
man/haveged.8 | 5 ++++-
|
||||||
|
src/haveged.c | 2 +-
|
||||||
|
2 files changed, 5 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/man/haveged.8 b/man/haveged.8
|
||||||
|
index edbc611..f88dc76 100644
|
||||||
|
--- a/man/haveged.8
|
||||||
|
+++ b/man/haveged.8
|
||||||
|
@@ -188,7 +188,7 @@ If running as a daemon, access to the following files is required
|
||||||
|
.I /proc/sys/kernel/osrelease
|
||||||
|
.P
|
||||||
|
.I /proc/sys/kernel/random/poolsize
|
||||||
|
-.P
|
||||||
|
+.P
|
||||||
|
.I /proc/sys/kernel/random/write_wakeup_threshold
|
||||||
|
.RE
|
||||||
|
|
||||||
|
@@ -313,6 +313,9 @@ haveged -n 16T -o tba8cbw -f - | pv > /dev/null
|
||||||
|
.TP
|
||||||
|
Generate large amounts of data (16TB). Disable continuous tests for the maximum throughput but run the online tests at the startup to make sure that generator for properly initialized:
|
||||||
|
haveged -n 16T -o tba8c -f - | pv > /dev/null
|
||||||
|
+.TP
|
||||||
|
+Create a password equivalent to a key strength of 256 bit
|
||||||
|
+haveged -f - -n 32 2>/dev/null | base64 | tr -d =
|
||||||
|
|
||||||
|
.SH SEE ALSO
|
||||||
|
.TP
|
||||||
|
diff --git a/src/haveged.c b/src/haveged.c
|
||||||
|
index 059bb28..59e62f5 100644
|
||||||
|
--- a/src/haveged.c
|
||||||
|
+++ b/src/haveged.c
|
||||||
|
@@ -435,7 +435,7 @@ int main(int argc, char **argv)
|
||||||
|
close(socket_fd);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
- else {
|
||||||
|
+ else if (!(params->setup & RUN_AS_APP)){
|
||||||
|
socket_fd = cmd_listen(params);
|
||||||
|
if (socket_fd >= 0)
|
||||||
|
fprintf(stderr, "%s: command socket is listening at fd %d\n", params->daemon, socket_fd);
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
Binary file not shown.
BIN
haveged-1.9.15.tar.gz
Normal file
BIN
haveged-1.9.15.tar.gz
Normal file
Binary file not shown.
@ -2,14 +2,15 @@
|
|||||||
# and made some modifications. The exactly file path is ./contrib/build/fedora.spec.
|
# and made some modifications. The exactly file path is ./contrib/build/fedora.spec.
|
||||||
Summary: A Linux entropy source using the HAVEGE algorithm
|
Summary: A Linux entropy source using the HAVEGE algorithm
|
||||||
Name: haveged
|
Name: haveged
|
||||||
Version: 1.9.14
|
Version: 1.9.15
|
||||||
Release: 3
|
Release: 1
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/jirka-h/haveged
|
URL: https://github.com/jirka-h/haveged
|
||||||
Source0: https://github.com/jirka-h/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/jirka-h/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: haveged.service
|
Source1: haveged.service
|
||||||
|
|
||||||
Patch0: fix-the-core-file-problem.patch
|
Patch0: fix-the-core-file-problem.patch
|
||||||
|
Patch1: backport-Fix-haveged-cannot-be-run-as-an-application-if-also-running-as-a-daemon.patch
|
||||||
|
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
@ -102,6 +103,9 @@ rm -rf %{buildroot}
|
|||||||
%{_mandir}/man3/libhavege.3*
|
%{_mandir}/man3/libhavege.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 24 2021 yixiangzhike <yixiangzhike007@163.com> - 1.9.15-1
|
||||||
|
- update to 1.9.15
|
||||||
|
|
||||||
* Mon Jul 19 2021 yixiangzhike <zhangxingliang3@huawei.com> - 1.9.14-3
|
* Mon Jul 19 2021 yixiangzhike <zhangxingliang3@huawei.com> - 1.9.14-3
|
||||||
- delete unnecessary gdb from BuildRequires
|
- delete unnecessary gdb from BuildRequires
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user