Enforce permissions on kill(), homeDir() and execPath (#2723)

This commit is contained in:
Nayeem Rahman 2019-08-06 06:45:36 +01:00 committed by Ryan Dahl
parent 046cccfe17
commit 11c850af42
4 changed files with 24 additions and 3 deletions

View file

@ -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();