Even when the
Read permission setting in "Auto-Approve" is off, the harness in readonly ("Ask") mode will provide file contents via symlinks.
For example, you can create a symlink in the workspace, e.g. myfile pointing to /etc/passwd, and Ask mode will trivially be able to access it.
Suggested solution
That setting should probably be extended by a setting
so one can control this behaviour.
The harness should then resolve file paths before providing their contents.
Even when the
Read permission setting in "Auto-Approve" is off, the harness in readonly ("Ask") mode will provide file contents via symlinks.
For example, you can create a symlink in the workspace, e.g.
myfilepointing to/etc/passwd, and Ask mode will trivially be able to access it.Suggested solution
That setting should probably be extended by a setting
so one can control this behaviour.
The harness should then resolve file paths before providing their contents.