Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,077 for unshare (0.17 sec)

  1. tools/istio-iptables/pkg/dependencies/implementation_linux_test.go

    package dependencies
    
    import (
    	"testing"
    
    	// Create a new network namespace. This will have the 'lo' interface ready but nothing else.
    	_ "github.com/howardjohn/unshare-go/netns"
    	// Create a new user namespace. This will map the current UID to 0.
    	_ "github.com/howardjohn/unshare-go/userns"
    	"github.com/vishvananda/netns"
    
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/test/util/file"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 26 20:05:40 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprog/syscalls_linux.go

    	// This is imperative for checking for OS thread state
    	// after an unshare since os.Getwd might just check the
    	// environment, or use some other mechanism.
    	var buf [4096]byte
    	n, err := syscall.Getcwd(buf[:])
    	if err != nil {
    		return "", err
    	}
    	// Subtract one for null terminator.
    	return string(buf[:n-1]), nil
    }
    
    func unshareFs() error {
    	err := syscall.Unshare(syscall.CLONE_FS)
    	if testenv.SyscallIsNotSupported(err) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprog/lockosthread.go

    		runtime.LockOSThread()
    
    		// Unshare details about the FS, like the CWD, with
    		// the rest of the process on this thread.
    		// On systems other than Linux, this is a no-op.
    		if err := unshareFs(); err != nil {
    			if err == errNotPermitted {
    				println("unshare not permitted")
    				os.Exit(0)
    			}
    			println("failed to unshare fs:", err.Error())
    			os.Exit(1)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue1435.go

    		// The Go build system's swarming user is known not to be root.
    		// Unfortunately, it sometimes appears as root due the current
    		// implementation of a no-network check using 'unshare -n -r'.
    		// Since this test does need root to work, we need to skip it.
    		t.Skip("skipping root only test on a non-root builder")
    	}
    	if runtime.GOOS == "linux" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 21:31:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zsymaddr_zos_s390x.s

    	MOVD $·Syncfs(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    TEXT ·get_UnshareAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Unshare(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    TEXT ·get_LinkatAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Linkat(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/unsafe.go

    package main
    
    import "unsafe"
    
    func init() {
    	register("panicOnNilAndEleSizeIsZero", panicOnNilAndEleSizeIsZero)
    }
    
    func panicOnNilAndEleSizeIsZero() {
    	var p *struct{}
    	_ = unsafe.Slice(p, 5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 15:45:17 UTC 2022
    - 195 bytes
    - Viewed (0)
  7. src/runtime/unsafe.go

    	if checkptrStraddles(ptr, uintptr(len64)) {
    		throw("checkptr: unsafe.String result straddles multiple allocations")
    	}
    }
    
    func panicunsafestringlen() {
    	panic(errorString("unsafe.String: len out of range"))
    }
    
    func panicunsafestringnilptr() {
    	panic(errorString("unsafe.String: ptr is nil and len is not zero"))
    }
    
    // Keep this code in sync with cmd/compile/internal/walk/builtin.go:walkUnsafeSlice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:51:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. src/math/unsafe.go

    func Float32bits(f float32) uint32 { return *(*uint32)(unsafe.Pointer(&f)) }
    
    // Float32frombits returns the floating-point number corresponding
    // to the IEEE 754 binary representation b, with the sign bit of b
    // and the result in the same bit position.
    // Float32frombits(Float32bits(x)) == x.
    func Float32frombits(b uint32) float32 { return *(*float32)(unsafe.Pointer(&b)) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

        /**
         * @param url
         * @param tc
         * @param unshared
         * @throws DcerpcException
         * @throws MalformedURLException
         */
        public DcerpcPipeHandle ( String url, CIFSContext tc, boolean unshared ) throws DcerpcException, MalformedURLException {
            super(tc, DcerpcHandle.parseBinding(url));
            this.pipe = new SmbNamedPipe(makePipeUrl(), pipeFlags, unshared, tc);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jan 26 11:51:07 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/crypto/internal/alias/alias.go

    package alias
    
    import "unsafe"
    
    // AnyOverlap reports whether x and y share memory at any (not necessarily
    // corresponding) index. The memory beyond the slice length is ignored.
    func AnyOverlap(x, y []byte) bool {
    	return len(x) > 0 && len(y) > 0 &&
    		uintptr(unsafe.Pointer(&x[0])) <= uintptr(unsafe.Pointer(&y[len(y)-1])) &&
    		uintptr(unsafe.Pointer(&y[0])) <= uintptr(unsafe.Pointer(&x[len(x)-1]))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top