Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 74 for SetGroups (0.18 sec)

  1. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/internal/DefaultXcodeProject.java

        private File locationDir;
    
        @Inject
        public DefaultXcodeProject(ObjectFactory objectFactory) {
            this.groups = objectFactory.newInstance(Groups.class);
        }
    
        public Groups getGroups() {
            return groups;
        }
    
        public List<XcodeTarget> getTargets() {
            return targets;
        }
    
        public Callable<List<TaskDependency>> getTaskDependencies() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview.go

    	requestSubResource := attr.GetSubresource()
    	aUserInfo := attr.GetUserInfo()
    	userInfo := authenticationv1.UserInfo{
    		Extra:    make(map[string]authenticationv1.ExtraValue),
    		Groups:   aUserInfo.GetGroups(),
    		UID:      aUserInfo.GetUID(),
    		Username: aUserInfo.GetName(),
    	}
    	dryRun := attr.IsDryRun()
    
    	// Convert the extra information in the user object
    	for key, val := range aUserInfo.GetExtra() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  3. pkg/ctrlz/topics/proc.go

    		GID:        os.Getgid(),
    		Pid:        os.Getpid(),
    		Ppid:       os.Getppid(),
    		UID:        os.Getuid(),
    		TempDir:    os.TempDir(),
    		Goroutines: runtime.NumGoroutine(),
    	}
    
    	pi.Groups, _ = os.Getgroups()
    	pi.Wd, _ = os.Hostname()
    	pi.Hostname, _ = os.Hostname()
    	pi.Threads, _ = runtime.ThreadCreateProfile(nil)
    
    	return &pi
    }
    
    func (procTopic) Activate(context fw.TopicContext) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/syscall/syscall_js.go

    }
    
    func Geteuid() int {
    	return jsProcess.Call("geteuid").Int()
    }
    
    func Getegid() int {
    	return jsProcess.Call("getegid").Int()
    }
    
    func Getgroups() (groups []int, err error) {
    	defer recoverErr(&err)
    	array := jsProcess.Call("getgroups")
    	groups = make([]int, array.Length())
    	for i := range groups {
    		groups[i] = array.Index(i).Int()
    	}
    	return groups, nil
    }
    
    func Getpid() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        public String[] getPermissions() {
            return user.getPermissions();
        }
    
        public String[] getRoles() {
            return user.getRoleNames();
        }
    
        public String[] getGroups() {
            return user.getGroupNames();
        }
    
        public boolean isEditable() {
            return user.isEditable();
        }
    
        public boolean hasRole(final String role) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/request/context_test.go

    	}
    
    	expectedUID := "123"
    	if result.GetUID() != expectedUID {
    		t.Fatalf("Get UID error, Expected: %s, Actual: %s", expectedUID, result.GetName())
    	}
    
    	expectedGroup := "group1"
    	actualGroup := result.GetGroups()
    	if len(actualGroup) != 1 {
    		t.Fatalf("Get user group number error, Expected: 1, Actual: %d", len(actualGroup))
    	} else if actualGroup[0] != expectedGroup {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  7. pkg/registry/authentication/selfsubjectreview/rest.go

    		},
    		Status: authenticationapi.SelfSubjectReviewStatus{
    			UserInfo: authenticationapi.UserInfo{
    				Username: user.GetName(),
    				UID:      user.GetUID(),
    				Groups:   user.GetGroups(),
    				Extra:    make(map[string]authenticationapi.ExtraValue, len(extra)),
    			},
    		},
    	}
    	for key, attr := range extra {
    		selfSR.Status.UserInfo.Extra[key] = attr
    	}
    
    	return selfSR, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 23:42:33 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/audit/request.go

    		ev.User.Username = user.GetName()
    		ev.User.Extra = map[string]authnv1.ExtraValue{}
    		for k, v := range user.GetExtra() {
    			ev.User.Extra[k] = authnv1.ExtraValue(v)
    		}
    		ev.User.Groups = user.GetGroups()
    		ev.User.UID = user.GetUID()
    	}
    
    	if attribs.IsResourceRequest() {
    		ev.ObjectRef = &auditinternal.ObjectReference{
    			Namespace:   attribs.GetNamespace(),
    			Name:        attribs.GetName(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. pkg/registry/authentication/tokenreview/storage.go

    	}
    
    	if resp != nil && resp.User != nil {
    		tokenReview.Status.User = authentication.UserInfo{
    			Username: resp.User.GetName(),
    			UID:      resp.User.GetUID(),
    			Groups:   resp.User.GetGroups(),
    			Extra:    map[string]authentication.ExtraValue{},
    		}
    		for k, v := range resp.User.GetExtra() {
    			tokenReview.Status.User.Extra[k] = authentication.ExtraValue(v)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:13 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  10. pkg/registry/rbac/escalation_check.go

    		return false
    	}
    
    	// system:masters is special because the API server uses it for privileged loopback connections
    	// therefore we know that a member of system:masters can always do anything
    	for _, group := range u.GetGroups() {
    		if group == user.SystemPrivilegedGroup {
    			return true
    		}
    	}
    
    	return false
    }
    
    var roleResources = map[schema.GroupResource]bool{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 4.3K bytes
    - Viewed (0)
Back to top