When zuluCrypt-cli --test is run via sudo, it fails with the following error:
$ sudo zuluCrypt-cli --test
[...]
create a luks type volume using a key: FAILED
ERROR: A non supported device encountered,device is missing or permission denied
Possible reasons for getting the error are:
1.Device path is invalid.
2.The device has LVM or MDRAID signature
Hello,
When zuluCrypt-cli --test is run via sudo, it fails with the following error:
Full log in Ubuntu: https://autopkgtest.ubuntu.com/results/autopkgtest-mantic/mantic/amd64/z/zulucrypt/20230506_063514_ac412@/log.gz
Analysis:
/tmp/zuluCrypt-luksTestVolume
file gets created as rootseteuid(uid)
whereuid
is determined via theSUDO_UID
variable in this function https://github.com/mhogomchungu/zuluCrypt/blob/cf8de091cfb03b6dc1cd27195345f299aa3fdbea/zuluCrypt-cli/bin/security.c#L86)excerpt from strace:
I found a workaround that I'm going to propose for the test-suite in Ubuntu:
But it feels like something is wrong in the logic itself.
Thanks, Olivier