From a655a0f3e4201840eda94938fc8d6222c2b94a99 Mon Sep 17 00:00:00 2001 From: Leo K Date: Mon, 13 Sep 2021 19:26:23 +0200 Subject: feat(unstable): allow specifing gid and uid for subprocess (#11586) --- cli/dts/lib.deno.ns.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/dts/lib.deno.ns.d.ts') 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" -- cgit v1.2.3