mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-07 13:42:40 -04:00
protect against wipe RAM reboot loop
This commit is contained in:
parent
c1b87d250c
commit
c0b5fea680
1 changed files with 7 additions and 0 deletions
|
@ -36,6 +36,12 @@ ram_wipe() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
kernel_wiperamexit_setting=$(getarg wiperamexit)
|
||||||
|
if [ "$kernel_wiperamexit_setting" = "yes" ]; then
|
||||||
|
warn "wipe-ram.sh: Skip, because wiperamexit=yes to avoid RAM wipe reboot loop."
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
info "wipe-ram.sh: Cold boot attack defense... Starting RAM wipe on shutdown..."
|
info "wipe-ram.sh: Cold boot attack defense... Starting RAM wipe on shutdown..."
|
||||||
|
|
||||||
drop_caches
|
drop_caches
|
||||||
|
@ -73,6 +79,7 @@ dmsetup_actual_output: '$dmsetup_actual_output'"
|
||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
info "wipe-ram.sh: Now running kexec --exec..."
|
||||||
if kexec --exec ; then
|
if kexec --exec ; then
|
||||||
info "wipe-ram.sh: kexec --exec succeeded."
|
info "wipe-ram.sh: kexec --exec succeeded."
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue