V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m45s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m45s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -230,7 +230,7 @@ mount_partition() {
|
||||
var_partuuid="${HMP_PATH_PARTUUID["${var_mount_path}"]}"
|
||||
|
||||
cryptsetup open --type plain --hash=plain \
|
||||
--key-file /dev/random --keyfile-size 64 \
|
||||
--key-file /dev/urandom --keyfile-size 64 \
|
||||
--cipher aes-xts-plain64 --key-size 512 \
|
||||
"/dev/disk/by-partuuid/${var_partuuid}" "${var_encryption_label}"
|
||||
|
||||
@@ -250,7 +250,7 @@ mount_partition() {
|
||||
var_partuuid="${HMP_PATH_PARTUUID["${var_mount_path}"]}"
|
||||
|
||||
cryptsetup open --type plain --hash=plain \
|
||||
--key-file /dev/random --keyfile-size 64 \
|
||||
--key-file /dev/urandom --keyfile-size 64 \
|
||||
--cipher aes-xts-plain64 --key-size 512 \
|
||||
"/dev/disk/by-partuuid/${var_partuuid}" "${var_encryption_label}"
|
||||
|
||||
|
||||
@@ -125,15 +125,17 @@ EOF
|
||||
case "${var_key,,}" in
|
||||
|
||||
swap)
|
||||
write_crypttab "${var_ephemeral_enclabel}" "PARTUUID=${var_host_partuuid}" "/dev/random" "plain,cipher=aes-xts-plain64,size=512,hash=plain,keyfile-size=64,discard,swap"
|
||||
write_crypttab "${var_ephemeral_enclabel}" "PARTUUID=${var_host_partuuid}" "/dev/urandom" "plain,cipher=aes-xts-plain64,size=512,hash=plain,keyfile-size=64,discard,swap"
|
||||
;;
|
||||
|
||||
/tmp)
|
||||
write_crypttab "${var_ephemeral_enclabel}" "PARTUUID=${var_host_partuuid}" "/dev/random" "plain,cipher=aes-xts-plain64,size=512,hash=plain,keyfile-size=64,discard"
|
||||
chroot_script "${TARGET}" "systemctl unmask tmp.mount"
|
||||
do_log "info" "file_only" "4210() Executed: [systemctl unmask tmp.mount]"
|
||||
chroot_script "${TARGET}" "systemctl disable tmp.mount"
|
||||
do_log "info" "file_only" "4210() Executed: [systemctl disable tmp.mount]"
|
||||
write_crypttab "${var_ephemeral_enclabel}" "PARTUUID=${var_host_partuuid}" "/dev/urandom" "plain,cipher=aes-xts-plain64,size=512,hash=plain,keyfile-size=64,discard"
|
||||
chroot_script "${TARGET}" "systemctl mask tmp.mount"
|
||||
do_log "info" "file_only" "4210() Executed: [systemctl mask tmp.mount]"
|
||||
#chroot_script "${TARGET}" "systemctl unmask tmp.mount"
|
||||
#do_log "info" "file_only" "4210() Executed: [systemctl unmask tmp.mount]"
|
||||
#chroot_script "${TARGET}" "systemctl disable tmp.mount"
|
||||
#do_log "info" "file_only" "4210() Executed: [systemctl disable tmp.mount]"
|
||||
;;
|
||||
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user