V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -15,16 +15,24 @@ guard_sourcing
|
||||
#######################################
|
||||
# Hardening haveged.
|
||||
# Globals:
|
||||
# RECOVERY
|
||||
# TARGET
|
||||
# VAR_RUN_RECOVERY
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# 0: on success
|
||||
#######################################
|
||||
hardening_haveged() {
|
||||
insert_header "${TARGET}/etc/default/haveged"
|
||||
insert_comments "${TARGET}/etc/default/haveged"
|
||||
cat << EOF >> "${TARGET}/etc/default/haveged"
|
||||
### Declare Arrays, HashMaps, and Variables.
|
||||
declare var_target="${TARGET}"
|
||||
|
||||
### Check for TARGET / RECOVERY.
|
||||
[[ "${VAR_RUN_RECOVERY}" == "true" ]] && var_target="${RECOVERY}"
|
||||
|
||||
insert_header "${var_target}/etc/default/haveged"
|
||||
insert_comments "${var_target}/etc/default/haveged"
|
||||
cat << EOF >> "${var_target}/etc/default/haveged"
|
||||
# Configuration file for haveged
|
||||
# Minimal, sane defaults for server/headless systems.
|
||||
# -w <bits> : target entropy level in bits; 1024 ensures fast pool fill on boot
|
||||
|
||||
Reference in New Issue
Block a user