diff options
author | Leo K <crowlkats@toaxl.com> | 2021-09-13 19:26:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 19:26:23 +0200 |
commit | a655a0f3e4201840eda94938fc8d6222c2b94a99 (patch) | |
tree | 9b065e3e2e4fcfd7f59ef004e2cd2bc2b6c785de /cli/dts/lib.deno.ns.d.ts | |
parent | 274ff6c469656bfe527fa644c24dfecc79e90ce4 (diff) |
feat(unstable): allow specifing gid and uid for subprocess (#11586)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 5b6849bfd..05e600ed7 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2034,6 +2034,12 @@ declare namespace Deno { * Environmental variables for subprocess can be specified using `opt.env` * mapping. * + * `opt.uid` sets the child process’s user ID. This translates to a setuid call + * in the child process. Failure in the setuid call will cause the spawn to fail. + * + * `opt.gid` is similar to `opt.uid`, but sets the group ID of the child process. + * This has the same semantics as the uid field. + * * By default subprocess inherits stdio of parent process. To change that * `opt.stdout`, `opt.stderr` and `opt.stdin` can be specified independently - * they can be set to either an rid of open file or set to "inherit" "piped" |