jitterentropy-rngd: update to the v1.2.0
74104b2 update copyright date
1b5f34b integrate library v3.0.0
8a43ce4 Fix permissions set by systemd unit file
f995407 force the kernel to reseed the ChaCha20 DRNG
4104015 force reseed after 10 minutes
9d61de7 jitterentropy-rngd.1: spelling
739bcba Add Dockerfile and docker-compose.yaml for easy deployment.
cc8c38c Harden systemd service
Signed-off-by: Rafał Miłecki <[email protected]>
Fix blocked entropy generation
The OpenWrt Jitter RNG daemon is currently unable to continuously
provide entropy, except once on process startup.
This patch brings the following fixes:
- poll /dev/random for unblocking write operations, instead of read
- register the low entropy callback after uloop initialization, not
before
Signed-off-by: Cristian Ciocaltea <[email protected]>
[commit subject tweak, uloop_done cleanup]
Signed-off-by: Petr Štetiar <[email protected]>
jitterentropy-rngd: update to version v1.1.0 + clang compile fix
* avert crash during shutdown when the kernel sends a SIGALRM while the
Jitter RNG is deallocated
* Fix: unsafe signal handling by Gerald Lledo
* import jitterentropy library 2.2.0 to make rngd fully SP800-90B compliant
* include clang compile fix in order to use scan-build static checker
used in GitLab CI pipeline
Signed-off-by: Petr Štetiar <[email protected]>
Fix wrong types in format strings used in debug build
GCC 9.2.1 on x86/64 complains about following format string issues:
urngd.c:94:12: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Werror=format=]
urngd.c:94:12: error: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Werror=format=]
GCC 7.4.0 on i.mx6 complains about following format string issues:
urngd.c:55:20: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t {aka unsigned int}' [-Werror=format=]
Ref: https://gitlab.com/ynezz/openwrt-urngd/-/jobs/
306404059
Ref: https://gitlab.com/ynezz/openwrt-urngd/-/jobs/
309187631
Signed-off-by: Petr Štetiar <[email protected]>
Add initial GitLab CI support
Uses currently proof-of-concept openwrt-ci[1] in order to:
* improve the quality of the codebase in various areas
* decrease code review time and help merging contributions faster
* get automagic feedback loop on various platforms and tools
- out of tree build with OpenWrt SDK on following targets:
* ath79-generic
* imx6-generic
* malta-be
* mvebu-cortexa53
- out of tree native build on x86/64 with GCC (versions 7, 8, 9) and Clang 9
- out of tree native x86/64 static code analysis with cppcheck and
scan-build from Clang 9
1. https://gitlab.com/ynezz/openwrt-ci/
Signed-off-by: Petr Štetiar <[email protected]>
Fix wrong type in format string
GCC 9.1 complains about this wrong type used in the format string, fix
this to make the compiler happy.
Signed-off-by: Hauke Mehrtens <[email protected]>
Init logging before actually using it
Otherwise we don't get urngd: prefixed log messages which might be
confusing:
procd: - watchdog -
jent-rng init failed, err: 2
procd: - watchdog -
While at it add missing newline in one error message.
Signed-off-by: Petr Štetiar <[email protected]>