diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-05-29 16:27:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-29 17:27:43 +0200 |
commit | 8e39275429c36ff5dfa5d62a80713c5b288fe26a (patch) | |
tree | 1d6d2781682bed1c29f81366f08db65c604fef2c /cli/ops/os.rs | |
parent | ad6d2a7734aafb4a64837abc6abd1d1d0fb20017 (diff) |
fix(cli/permissions): Fix CWD and exec path leaks (#5642)
Diffstat (limited to 'cli/ops/os.rs')
-rw-r--r-- | cli/ops/os.rs | 2 |
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(¤t_exe)?; + state.check_read_blind(¤t_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(); |