Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for setgroups1 (0.27 sec)

  1. src/syscall/exec_linux.go

    		uidmap = formatIDMappings(sys.UidMappings)
    	}
    
    	if sys.GidMappings != nil {
    		psetgroups = []byte("/proc/self/setgroups\000")
    		pgid = []byte("/proc/self/gid_map\000")
    
    		if sys.GidMappingsEnableSetgroups {
    			setgroups = []byte("allow\000")
    		} else {
    			setgroups = []byte("deny\000")
    		}
    		gidmap = formatIDMappings(sys.GidMappings)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. src/syscall/syscall_aix.go

    	if err == nil {
    		i := 0
    		for buf[i] != 0 {
    			i++
    		}
    		n = i + 1
    	}
    	return
    }
    
    //sysnb	getgroups(ngid int, gid *_Gid_t) (n int, err error)
    //sysnb	setgroups(ngid int, gid *_Gid_t) (err error)
    
    func Getgroups() (gids []int, err error) {
    	n, err := getgroups(0, nil)
    	if err != nil {
    		return nil, err
    	}
    	if n == 0 {
    		return nil, nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. src/syscall/exec_linux_test.go

    		},
    		GidMappingsEnableSetgroups: setgroups,
    	}
    	return cmd
    }
    
    func TestCloneNEWUSERAndRemap(t *testing.T) {
    	for _, setgroups := range []bool{false, true} {
    		setgroups := setgroups
    		t.Run(fmt.Sprintf("setgroups=%v", setgroups), func(t *testing.T) {
    			uid := os.Getuid()
    			gid := os.Getgid()
    
    			cmd := whoamiNEWUSER(t, uid, gid, setgroups)
    			out, err := cmd.CombinedOutput()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

                model.setModelVersion("4.0.0");
                model.setGroupId(groupId);
                model.setArtifactId(artifactId);
                model.setVersion(version);
                model.setBuild(new Build());
                project = new MavenProject(model);
            }
    
            public ProjectBuilder setGroupId(String groupId) {
                project.setGroupId(groupId);
                return this;
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 15:10:38 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

                model.setModelVersion("4.0.0");
                model.setGroupId(groupId);
                model.setArtifactId(artifactId);
                model.setVersion(version);
                model.setBuild(new Build());
                project = new MavenProject(model);
            }
    
            public ProjectBuilder setGroupId(String groupId) {
                project.setGroupId(groupId);
                return this;
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. src/syscall/syscall_linux_test.go

    		{call: "Setgroups([]int{0,1,2,3})", fn: func() error { return syscall.Setgroups([]int{0, 1, 2, 3}) }, filter: "Groups:", expect: "\t0 1 2 3"},
    		{call: "Setgroups(nil)", fn: func() error { return syscall.Setgroups(nil) }, filter: "Groups:", expect: ""},
    		{call: "Setgroups([]int{0})", fn: func() error { return syscall.Setgroups([]int{0}) }, filter: "Groups:", expect: "\t0"},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  7. maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

        //
        // ----------------------------------------------------------------------
    
        public PluginDescriptor() {}
    
        public PluginDescriptor(PluginDescriptor original) {
            this.setGroupId(original.getGroupId());
            this.setArtifactId(original.getArtifactId());
            this.setVersion(original.getVersion());
            this.setGoalPrefix(original.getGoalPrefix());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sun Apr 14 17:14:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

            // merge implicitly assumes that merge is only called on the same GAV and does not perform any validation here!
            Metadata source = new Metadata();
            source.setArtifactId("source-artifact");
            source.setGroupId("source-group");
            source.setVersion("2.0");
            assertFalse(target.merge(source));
            assertEquals("myArtifact", target.getArtifactId());
            assertEquals("myGroup", target.getGroupId());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/JavaGradlePluginPlugin.java

            return project.getTasks().register(PLUGIN_UNDER_TEST_METADATA_TASK_NAME, PluginUnderTestMetadata.class, pluginUnderTestMetadataTask -> {
                pluginUnderTestMetadataTask.setGroup(PLUGIN_DEVELOPMENT_GROUP);
                pluginUnderTestMetadataTask.setDescription(PLUGIN_UNDER_TEST_METADATA_TASK_DESCRIPTION);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 06:56:29 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  10. src/syscall/syscall_linux.go

    	return string(buf[0 : n-1]), nil
    }
    
    func Getgroups() (gids []int, err error) {
    	n, err := getgroups(0, nil)
    	if err != nil {
    		return nil, err
    	}
    	if n == 0 {
    		return nil, nil
    	}
    
    	// Sanity check group count. Max is 1<<16 on Linux.
    	if n < 0 || n > 1<<20 {
    		return nil, EINVAL
    	}
    
    	a := make([]_Gid_t, n)
    	n, err = getgroups(n, &a[0])
    	if err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top