mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
drop_caches
This commit is contained in:
parent
02f44459ad
commit
539156c0da
@ -8,6 +8,14 @@
|
||||
|
||||
DRACUT_QUIET=no
|
||||
|
||||
drop_caches() {
|
||||
sync
|
||||
## https://gitlab.tails.boum.org/tails/tails/-/blob/master/config/chroot_local-includes/usr/local/lib/initramfs-pre-shutdown-hook
|
||||
### Ensure any remaining disk cache is erased by Linux' memory poisoning
|
||||
echo 3 > /proc/sys/vm/drop_caches
|
||||
sync
|
||||
}
|
||||
|
||||
ram_wipe_action() {
|
||||
local kernel_wiperam_exit
|
||||
kernel_wiperam_exit=$(getarg wiperamexit)
|
||||
@ -24,9 +32,9 @@ ram_wipe_action() {
|
||||
|
||||
info "wipe-ram.sh wiperamexit: wiperamexit=yes, therefore running second RAM wipe..."
|
||||
|
||||
## TODO: drop_caches
|
||||
drop_caches
|
||||
sdmem -l -l -v
|
||||
## TODO: drop_caches
|
||||
drop_caches
|
||||
|
||||
info "wipe-ram.sh wiperamexit: Second RAM wipe completed."
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user