Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for SysProcAttr (0.54 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/os/pidfd_other.go

    //go:build (unix && !linux) || (js && wasm) || wasip1 || windows
    
    package os
    
    import "syscall"
    
    func ensurePidfd(sysAttr *syscall.SysProcAttr) *syscall.SysProcAttr {
    	return sysAttr
    }
    
    func getPidfd(_ *syscall.SysProcAttr) (uintptr, bool) {
    	return 0, false
    }
    
    func pidfdFind(_ int) (uintptr, error) {
    	return 0, syscall.ENOSYS
    }
    
    func (p *Process) pidfdRelease() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 692 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/windows/aliases.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build windows
    
    package windows
    
    import "syscall"
    
    type Errno = syscall.Errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 281 bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/telemetry/internal/configstore/download_windows.go

    	//   https://learn.microsoft.com/en-us/windows/console/creation-of-a-console
    	//   https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		CreationFlags: windows.CREATE_NO_WINDOW,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 1K bytes
    - Viewed (0)
  5. src/os/pidfd_linux.go

    package os
    
    import (
    	"errors"
    	"internal/syscall/unix"
    	"sync"
    	"syscall"
    	"unsafe"
    )
    
    func ensurePidfd(sysAttr *syscall.SysProcAttr) *syscall.SysProcAttr {
    	if !pidfdWorks() {
    		return sysAttr
    	}
    
    	var pidfd int
    
    	if sysAttr == nil {
    		return &syscall.SysProcAttr{
    			PidFD: &pidfd,
    		}
    	}
    	if sysAttr.PidFD == nil {
    		newSys := *sysAttr // copy
    		newSys.PidFD = &pidfd
    		return &newSys
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. pkg/envoy/proxy.go

    	}
    	cmd.Stdout = os.Stdout
    	cmd.Stderr = os.Stderr
    	if e.AgentIsRoot {
    		cmd.SysProcAttr = &syscall.SysProcAttr{}
    		cmd.SysProcAttr.Credential = &syscall.Credential{
    			Uid: 1337,
    			Gid: 1337,
    		}
    	}
    
    	if err := cmd.Start(); err != nil {
    		return err
    	}
    	done := make(chan error, 1)
    	go func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. 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)
  8. src/os/exec_posix.go

    // sending a signal.
    var (
    	Interrupt Signal = syscall.SIGINT
    	Kill      Signal = syscall.SIGKILL
    )
    
    func startProcess(name string, argv []string, attr *ProcAttr) (p *Process, err error) {
    	// If there is no SysProcAttr (ie. no Chroot or changed
    	// UID/GID), double-check existence of the directory we want
    	// to chdir into. We can make the error clearer this way.
    	if attr != nil && attr.Sys == nil && attr.Dir != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. 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)
  10. 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