Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,291 for getUid (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/audit/request.go

    		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(),
    			Resource:    attribs.GetResource(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/stat_unix.go

    // permission, hasWritePerm reports false if no appropriate permission bit is
    // set even if the current user is root.
    func hasWritePerm(path string, fi fs.FileInfo) bool {
    	if os.Getuid() == 0 {
    		// The root user can access any file, but we still want to default to
    		// read-only mode if the go.mod file is marked as globally non-writable.
    		// (If the user really intends not to be in readonly mode, they can
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 963 bytes
    - Viewed (0)
  3. src/syscall/exec_linux_test.go

    }
    
    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()
    			t.Logf("%v: %v", cmd, err)
    
    			if uid != 0 && setgroups {
    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. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    						}
    
    						// it should have a UUID
    						createdMetadata, err := meta.Accessor(createdNoxuInstance)
    						if err != nil {
    							t.Fatal(err)
    						}
    						if e, a := createdMetadata.GetUID(), eventMetadata.GetUID(); e != a {
    							t.Errorf("expected equal UID for (expected) %v, and (actual) %v", createdNoxuInstance, watchEvent.Object)
    						}
    
    					case <-time.After(5 * time.Second):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 11:35:33 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/test/integration/finalization_test.go

    	instance.SetFinalizers([]string{"noxu.example.com/finalizer"})
    	createdNoxuInstance, err := instantiateCustomResource(t, instance, noxuResourceClient, noxuDefinition)
    	require.NoError(t, err)
    
    	uid := createdNoxuInstance.GetUID()
    	err = noxuResourceClient.Delete(context.TODO(), name, metav1.DeleteOptions{
    		Preconditions: &metav1.Preconditions{
    			UID: &uid,
    		},
    	})
    	require.NoError(t, err)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 19:34:41 UTC 2021
    - 5.8K bytes
    - Viewed (0)
  6. pkg/controller/history/controller_history.go

    	if err != nil {
    		return nil, err
    	}
    	var owned []*apps.ControllerRevision
    	for i := range history {
    		ref := metav1.GetControllerOfNoCopy(history[i])
    		if ref == nil || ref.UID == parent.GetUID() {
    			owned = append(owned, history[i])
    		}
    
    	}
    	return owned, err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 13:33:52 UTC 2021
    - 18.2K bytes
    - Viewed (0)
  7. src/cmd/gofmt/gofmt_unix_test.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package main
    
    import (
    	"os"
    	"path/filepath"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestPermissions(t *testing.T) {
    	if os.Getuid() == 0 {
    		t.Skip("skipping permission test when running as root")
    	}
    
    	dir := t.TempDir()
    	fn := filepath.Join(dir, "perm.go")
    
    	// Create a file that needs formatting without write permission.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 12:52:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/os/removeall_test.go

    		t.Fatalf("Lstat %q succeeded after RemoveAll (third)", path)
    	}
    
    	// Chmod is not supported under Windows or wasip1 and test fails as root.
    	if runtime.GOOS != "windows" && runtime.GOOS != "wasip1" && Getuid() != 0 {
    		// Make directory with file and subdirectory and trigger error.
    		if err = MkdirAll(dpath, 0777); err != nil {
    			t.Fatalf("MkdirAll %q: %s", dpath, err)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:29 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DaemonContext.java

     * @see DaemonCompatibilitySpec
     * @see DaemonRequestContext
     */
    @ServiceScope(Scope.Global.class)
    public interface DaemonContext {
    
        /**
         * The unique identifier for this daemon.
         */
        String getUid();
    
        /**
         * The JAVA_HOME in use, as the canonical file.
         */
        File getJavaHome();
    
        JavaLanguageVersion getJavaVersion();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/authentication/group/group_adder.go

    	newGroups = append(newGroups, r.User.GetGroups()...)
    	newGroups = append(newGroups, g.Groups...)
    
    	ret := *r // shallow copy
    	ret.User = &user.DefaultInfo{
    		Name:   r.User.GetName(),
    		UID:    r.User.GetUID(),
    		Groups: newGroups,
    		Extra:  r.User.GetExtra(),
    	}
    	return &ret, true, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 20:04:50 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top