Hi all,
We are having an end to end test which need to mount a file system and the command we run from the C++ test is "sudo mount ....". While the command succeeds, we are not able to access all the files because I think the bazel is not able to run the sudo command and set uid as 0. This happens to files which are having restrictive permissions.
However, at the same time if I mount the file system locally using sudo, I can access everything just fine. Can someone explain what is going on and what can be done to resolve it? We have multiple tests, so we do not want to jeopardize the parallel execution of multiple testers (and this is the problem with the solution suggested here with standalone mode:
https://gist.github.com/erickj/f950a3d948a17ce3abfd7ab784c7ee27)
Regards,
Aman