Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for chroot1 (0.22 sec)

  1. src/syscall/exec_linux_test.go

    	cmd.Env = append(cmd.Environ(), "GO_WANT_HELPER_PROCESS=1")
    	cmd.SysProcAttr = &syscall.SysProcAttr{Chroot: d, Unshareflags: syscall.CLONE_NEWNS}
    
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		if testenv.SyscallIsNotSupported(err) {
    			t.Skipf("skipping: could not start process with CLONE_NEWNS and Chroot %q: %v", d, err)
    		}
    		t.Fatalf("unshare failed: %v\n%s", err, out)
    	} else if len(out) != 0 {
    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_unix.go

    		return 0, err
    	}
    
    	if (runtime.GOOS == "freebsd" || runtime.GOOS == "dragonfly") && len(argv) > 0 && len(argv[0]) > len(argv0) {
    		argvp[0] = argv0p
    	}
    
    	var chroot *byte
    	if sys.Chroot != "" {
    		chroot, err = BytePtrFromString(sys.Chroot)
    		if err != nil {
    			return 0, err
    		}
    	}
    	var dir *byte
    	if attr.Dir != "" {
    		dir, err = BytePtrFromString(attr.Dir)
    		if err != nil {
    			return 0, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/syscall/exec_linux.go

    			if err1 != 0 {
    				goto childerror
    			}
    		}
    	}
    
    	// Chroot
    	if chroot != nil {
    		_, _, err1 = RawSyscall(SYS_CHROOT, uintptr(unsafe.Pointer(chroot)), 0, 0)
    		if err1 != 0 {
    			goto childerror
    		}
    	}
    
    	// User and groups
    	if cred = sys.Credential; cred != nil {
    		ngroups = uintptr(len(cred.Groups))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  4. src/os/exec_posix.go

    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)
  5. cmd/kubeadm/app/cmd/options/generic.go

    func AddKubeadmOtherFlags(flagSet *pflag.FlagSet, rootfsPath *string) {
    	flagSet.StringVar(
    		rootfsPath, "rootfs", *rootfsPath,
    		"The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.",
    	)
    }
    
    // AddPatchesFlag adds the --patches flag to the given flagset
    func AddPatchesFlag(fs *pflag.FlagSet, patchesDir *string) {
    	const usage = `Path to a directory that contains files named ` +
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. src/io/fs/sub.go

    // accesses outside "/prefix", because the implementation of [os.DirFS]
    // does not check for symbolic links inside "/prefix" that point to
    // other directories. That is, [os.DirFS] is not a general substitute for a
    // chroot-style security mechanism, and Sub does not change that fact.
    func Sub(fsys FS, dir string) (FS, error) {
    	if !ValidPath(dir) {
    		return nil, &PathError{Op: "sub", Path: dir, Err: ErrInvalid}
    	}
    	if dir == "." {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 10 02:10:17 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. src/os/signal/signal_cgo_test.go

    	pty, procTTYName, err := testpty.Open()
    	if err != nil {
    		ptyErr := err.(*testpty.PtyError)
    		if ptyErr.FuncName == "posix_openpt" && ptyErr.Errno == syscall.EACCES {
    			t.Skip("posix_openpt failed with EACCES, assuming chroot and skipping")
    		}
    		t.Fatal(err)
    	}
    	defer pty.Close()
    	procTTY, err := os.OpenFile(procTTYName, os.O_RDWR, 0)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer procTTY.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 10:09:15 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. src/syscall/syscall_darwin.go

    //sys	Chdir(path string) (err error)
    //sys	Chflags(path string, flags int) (err error)
    //sys	Chmod(path string, mode uint32) (err error)
    //sys	Chown(path string, uid int, gid int) (err error)
    //sys	Chroot(path string) (err error)
    //sys	Close(fd int) (err error)
    //sys	closedir(dir uintptr) (err error)
    //sys	Dup(fd int) (nfd int, err error)
    //sys	Dup2(from int, to int) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

            otherConf.setExtendsFrom([configuration])
    
            then:
            thrown InvalidUserDataException
        }
    
        def "creates hierarchy"() {
            def root1 = conf("root1")
            def middle1 = conf("middle1").extendsFrom(root1)
            def root2 = conf("root2")
            def middle2 = conf("middle2").extendsFrom(root2)
            def leaf = conf("leaf1").extendsFrom(middle1, middle2)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd.go

    //sys	Chdir(path string) (err error)
    //sys	Chflags(path string, flags int) (err error)
    //sys	Chmod(path string, mode uint32) (err error)
    //sys	Chown(path string, uid int, gid int) (err error)
    //sys	Chroot(path string) (err error)
    //sys	ClockGettime(clockid int32, time *Timespec) (err error)
    //sys	Close(fd int) (err error)
    //sys	Dup(fd int) (nfd int, err error)
    //sys	Dup2(from int, to int) (err error)
    //sys	Exit(code int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top