You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Two volumes mounted at the same time can fail or end up at the wrong mount point #1960
Two volumes mounted at the same time both mount correctly, each at its own mount point.
Observed behavior
The auxiliary mount point /tmp/.veracrypt_aux_mntN is chosen from one read of /proc/mounts, then deleted and created again without exclusive creation (src/Core/Unix/CoreUnix.cpp:1273-1309). Two parallel mounts use the same directory. 7 of 40 parallel runs failed ("Permission denied: /tmp/.veracrypt_aux_mnt2/aux-device-info", "ParameterIncorrect at VeraCrypt::CoreUnix::MountVolume:1463"). In one run the filesystem of volume A was mounted at the mount point of volume B. With two users mounting at the same time one user saw the other user's decrypted files. Any local user can block all mounts by creating /tmp/.veracrypt_aux_mnt1 to 256.
Steps to reproduce
Create a.hc and b.hc with a different marker file in each.
Activity
Unix: create the auxiliary FUSE mount point with mkdtemp
Tests: add regression tests for issues veracrypt#1958 to veracrypt#1962
Tests: add a regression test for veracrypt#1960
Tests: add a regression test for veracrypt#1960
Unix: create the auxiliary FUSE mount point with mkdtemp
Tests: add a regression test for veracrypt#1960
Tests: add a regression test for veracrypt#1960
Unix: create the auxiliary FUSE mount point with mkdtemp
Tests: add a regression test for veracrypt#1960
Tests: add a regression test for veracrypt#1960
Unix: create the auxiliary FUSE mount point with mkdtemp
Tests: add a regression test for veracrypt#1960
Unix: create the auxiliary FUSE mount point with mkdtemp
Tests: add a regression test for veracrypt#1960