Back to Pocketbase

Interface SysProcAttr

static/jsvm/interfaces/syscall.SysProcAttr.html

latest4.1 KB
Original Source

Interface SysProcAttr

Hierarchy

  • SysProcAttr

Index

Properties

ambientCapscgroupFDchrootcloneflagscredential?cttyforegroundgidMappingsgidMappingsEnableSetgroupsnocttypdeathsigpgidpidFD?ptracesetcttysetpgidsetsiduidMappingsunshareflagsuseCgroupFD

Properties

ambientCaps

ambientCaps: number[]

cgroupFD

cgroupFD: number

chroot

chroot: string

cloneflags

cloneflags: number

Optional credential

credential?: Credential

ctty

ctty: number

foreground

foreground: boolean

Foreground places the child process group in the foreground. This implies Setpgid. The Ctty field must be set to the descriptor of the controlling TTY. Unlike Setctty, in this case Ctty must be a descriptor number in the parent process.

gidMappings

gidMappings: SysProcIDMap[]

gidMappingsEnableSetgroups

gidMappingsEnableSetgroups: boolean

GidMappingsEnableSetgroups enabling setgroups syscall. If false, then setgroups syscall will be disabled for the child process. This parameter is no-op if GidMappings == nil. Otherwise for unprivileged users this should be set to false for mappings work.

noctty

noctty: boolean

pdeathsig

pdeathsig: syscall.Signal

Pdeathsig, if non-zero, is a signal that the kernel will send to the child process when the creating thread dies. Note that the signal is sent on thread termination, which may happen before process termination. There are more details at https://go.dev/issue/27505.

pgid

pgid: number

Optional pidFD

pidFD?: number

PidFD, if not nil, is used to store the pidfd of a child, if the functionality is supported by the kernel, or -1. Note *PidFD is changed only if the process starts successfully.

ptrace

ptrace: boolean

Ptrace tells the child to call ptrace(PTRACE_TRACEME). Call runtime.LockOSThread before starting a process with this set, and don't call UnlockOSThread until done with PtraceSyscall calls.

setctty

setctty: boolean

Setctty sets the controlling terminal of the child to file descriptor Ctty. Ctty must be a descriptor number in the child process: an index into ProcAttr.Files. This is only meaningful if Setsid is true.

setpgid

setpgid: boolean

Setpgid sets the process group ID of the child to Pgid, or, if Pgid == 0, to the new child's process ID.

setsid

setsid: boolean

uidMappings

uidMappings: SysProcIDMap[]

unshareflags

unshareflags: number

useCgroupFD

useCgroupFD: boolean

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc