Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SysProcAttr (0.27 sec)

  1. src/syscall/exec_linux_test.go

    	cmd.Stderr = os.Stderr
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Credential: &syscall.Credential{
    			Uid: uint32(uid),
    			Gid: uint32(gid),
    		},
    		AmbientCaps: []uintptr{CAP_SYS_TIME, CAP_SYSLOG},
    	}
    	if userns {
    		cmd.SysProcAttr.Cloneflags = syscall.CLONE_NEWUSER
    		const nobody = 65534
    		uid := os.Getuid()
    		gid := os.Getgid()
    		cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. src/syscall/exec_linux.go

    // restrictions like in Ubuntu 24.04.
    type SysProcIDMap struct {
    	ContainerID int // Container ID.
    	HostID      int // Host ID.
    	Size        int // Size.
    }
    
    type SysProcAttr struct {
    	Chroot     string      // Chroot.
    	Credential *Credential // Credential.
    	// Ptrace tells the child to call ptrace(PTRACE_TRACEME).
    	// Call runtime.LockOSThread before starting a process with this set,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. src/os/exec/exec.go

    	//
    	// ExtraFiles is not supported on Windows.
    	ExtraFiles []*os.File
    
    	// SysProcAttr holds optional, operating system-specific attributes.
    	// Run passes it to os.StartProcess as the os.ProcAttr's Sys field.
    	SysProcAttr *syscall.SysProcAttr
    
    	// Process is the underlying process, once started.
    	Process *os.Process
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  4. src/os/exec.go

    	// Operating system-specific process creation attributes.
    	// Note that setting this field means that your program
    	// may not execute properly or even compile on some
    	// operating systems.
    	Sys *syscall.SysProcAttr
    }
    
    // A Signal represents an operating system signal.
    // The usual underlying implementation is operating system-dependent:
    // on Unix it is syscall.Signal.
    type Signal interface {
    	String() string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top