mirror of
https://github.com/denoland/deno.git
synced 2025-09-30 22:21:15 +00:00
Enforce permissions on kill(), homeDir() and execPath (#2723)
This commit is contained in:
parent
046cccfe17
commit
11c850af42
4 changed files with 24 additions and 3 deletions
|
@ -1053,10 +1053,12 @@ fn op_close(
|
|||
}
|
||||
|
||||
fn op_kill(
|
||||
_state: &ThreadSafeState,
|
||||
state: &ThreadSafeState,
|
||||
base: &msg::Base<'_>,
|
||||
data: Option<PinnedBuf>,
|
||||
) -> CliOpResult {
|
||||
state.check_run()?;
|
||||
|
||||
assert!(data.is_none());
|
||||
let inner = base.inner_as_kill().unwrap();
|
||||
let pid = inner.pid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue