Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for unshareFs (0.26 sec)

  1. src/runtime/testdata/testprog/syscalls_none.go

    package main
    
    func gettid() int {
    	return 0
    }
    
    func tidExists(tid int) (exists, supported bool, err error) {
    	return false, false, nil
    }
    
    func getcwd() (string, error) {
    	return "", nil
    }
    
    func unshareFs() error {
    	return nil
    }
    
    func chdir(path string) error {
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 471 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/syscall/exec_linux_test.go

    		}
    		t.Fatalf("unshare failed: %v\n%s", err, out)
    	} else if len(out) != 0 {
    		if bytes.HasPrefix(out, []byte(mountNotSupported)) {
    			t.Skipf("skipping: helper process reported %s", out)
    		}
    		t.Fatalf("unexpected output from helper process: %s", out)
    	}
    
    	// How do we tell if the namespace was really unshared? It turns out
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. src/syscall/exec_linux.go

    				goto childerror
    			}
    		}
    
    		// The unshare system call in Linux doesn't unshare mount points
    		// mounted with --shared. Systemd mounts / with --shared. For a
    		// long discussion of the pros and cons of this see debian bug 739593.
    		// The Go model of unsharing is more like Plan 9, where you ask
    		// to unshare and the namespaces are unconditionally unshared.
    		// To make this model work we must further mark / as MS_PRIVATE.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  6. 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)
  7. src/main/java/jcifs/SmbTransportPool.java

    
        /**
         * Get transport connection
         * 
         * @param tc
         *            context to use
         * @param address
         * @param port
         * @param exclusive
         *            whether to acquire an unshared connection
         * @return a transport connection to the target
         */
        SmbTransport getSmbTransport ( CIFSContext tc, Address address, int port, boolean exclusive );
    
    
        /**
         * Get transport connection
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun May 17 09:02:44 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  8. 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)
  9. src/main/java/jcifs/smb/SmbNamedPipe.java

         * @param pipeType
         * @param unshared
         *            whether to use an exclusive connection for this pipe
         * @param tc
         * @throws MalformedURLException
         */
    
        public SmbNamedPipe ( String url, int pipeType, boolean unshared, CIFSContext tc ) throws MalformedURLException {
            super(url, tc);
            this.pipeType = pipeType;
            setNonPooled(unshared);
            if ( !getLocator().isIPC() ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6K bytes
    - Viewed (0)
  10. tools/istio-iptables/pkg/dependencies/implementation_linux.go

    	}
    	// setupSandbox builds the sandbox.
    	setupSandbox := func() error {
    		// First, unshare the mount namespace. This allows us to create custom mounts without impacting the host
    		if err := unix.Unshare(unix.CLONE_NEWNS); err != nil {
    			return fmt.Errorf("failed to unshare to new mount namespace: %v", err)
    		}
    		if err := n.Set(); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 20:49:10 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top