Unix: isolate auto-mount options and EMV settings

Clone command-line auto-mount options before device and favorite batches, and clone the batch options again for each favorite before applying favorite-specific fields.

This prevents interactive credentials, PIM, KDF choices, and per-favorite filesystem settings from carrying over to later favorites.

Propagate EMVSupportEnabled through MountOptions serialization and mount setup so elevated core service requests use the same EMV setting as the caller.
This commit is contained in:
Mounir IDRASSI committed 2026-07-08 22:51:55 +09:00
1 parent fdf0c8f7ec
commit 9cabe0dc4e
9 files changed
+71 -22

No files matched your search

+3 -2
View File
@@ -904,7 +904,7 @@ namespace VeraCrypt
}
}
shared_ptr <VolumeInfo> GraphicUserInterface::MountVolume (MountOptions &options) const
shared_ptr <VolumeInfo> GraphicUserInterface::MountVolume (MountOptions &options, bool tryCachedPasswords) const
{
CheckRequirementsForMountingVolume();
@@ -937,7 +937,8 @@ namespace VeraCrypt
try
{
if ((!options.Password || options.Password->IsEmpty())
if (tryCachedPasswords
&& (!options.Password || options.Password->IsEmpty())
&& (!options.Keyfiles || options.Keyfiles->empty())
&& !Core->IsPasswordCacheEmpty())
{