summaryrefslogtreecommitdiff
path: root/cli/ops/os.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-05-29 16:27:43 +0100
committerGitHub <noreply@github.com>2020-05-29 17:27:43 +0200
commit8e39275429c36ff5dfa5d62a80713c5b288fe26a (patch)
tree1d6d2781682bed1c29f81366f08db65c604fef2c /cli/ops/os.rs
parentad6d2a7734aafb4a64837abc6abd1d1d0fb20017 (diff)
fix(cli/permissions): Fix CWD and exec path leaks (#5642)
Diffstat (limited to 'cli/ops/os.rs')
-rw-r--r--cli/ops/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/ops/os.rs b/cli/ops/os.rs
index 6c1801520..1dd2ddc4f 100644
--- a/cli/ops/os.rs
+++ b/cli/ops/os.rs
@@ -83,7 +83,7 @@ fn op_exec_path(
_zero_copy: Option<ZeroCopyBuf>,
) -> Result<JsonOp, OpError> {
let current_exe = env::current_exe().unwrap();
- state.check_read(&current_exe)?;
+ state.check_read_blind(&current_exe, "exec_path")?;
// Now apply URL parser to current exe to get fully resolved path, otherwise
// we might get `./` and `../` bits in `exec_path`
let exe_url = Url::from_file_path(current_exe).unwrap();