From bdbe5df54ed3cf5f13112ca95493bf66d2eb8832 Mon Sep 17 00:00:00 2001 From: b1ackmai1er Date: Sun, 6 Dec 2020 14:52:03 +0800 Subject: [PATCH] Update Build.ps1 Make all the rom / flash disk files read only for additional protection. --- Source/HBIOS/Build.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/HBIOS/Build.ps1 b/Source/HBIOS/Build.ps1 index 755dea90..327f9a6f 100644 --- a/Source/HBIOS/Build.ps1 +++ b/Source/HBIOS/Build.ps1 @@ -226,6 +226,9 @@ foreach ($App in $RomApps) cpmcp -f $RomFmt $RomDiskFile ..\cpm22\cpm_${Bios}.sys 0:cpm.sys cpmcp -f $RomFmt $RomDiskFile ..\zsdos\zsys_${Bios}.sys 0:zsys.sys +# Set all the files in the ROM disk image to read only for extra protection under flash file system. +cpmchattr -f $RomFmt $RomDiskFile r 0:*.* + # # Finally, the individual binary components are concatenated together to produce # the final images.