Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for checkPermissions (0.32 sec)

  1. cmd/update.go

    	}
    	defer updateInProgress.Store(0)
    
    	transport := getUpdateTransport(30 * time.Second)
    	opts := selfupdate.Options{
    		Hash:     crypto.SHA256,
    		Checksum: sha256Sum,
    	}
    
    	if err := opts.CheckPermissions(); err != nil {
    		return AdminError{
    			Code:       AdminUpdateApplyFailure,
    			Message:    fmt.Sprintf("server update failed with: %s, do not restart the servers yet", err),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  2. cmd/kubelet/app/server.go

    			kubeletDeps, err := UnsecuredDependencies(kubeletServer, utilfeature.DefaultFeatureGate)
    			if err != nil {
    				return fmt.Errorf("failed to construct kubelet dependencies: %w", err)
    			}
    
    			if err := checkPermissions(); err != nil {
    				klog.ErrorS(err, "kubelet running with insufficient permissions")
    			}
    
    			// make the kubelet's config safe for logging
    			config := kubeletServer.KubeletConfiguration.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  3. platforms/core-execution/workers/src/test/groovy/org/gradle/process/internal/worker/child/BootstrapSecurityManagerTest.groovy

            when:
            securityManager.checkPermission(new AllPermission())
    
            then:
            1 * cl.addURL(entry1.toURI().toURL())
            1 * cl.addURL(entry2.toURI().toURL())
            0 * cl._
            System.getProperty("java.class.path") == [entry1.absolutePath, entry2.absolutePath].join(File.pathSeparator)
    
            when:
            securityManager.checkPermission(new AllPermission())
    
            then:
            0 * cl._
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. platforms/core-execution/worker-main/src/main/java/org/gradle/process/internal/worker/child/BootstrapSecurityManager.java

        public BootstrapSecurityManager() {
            this(null);
        }
    
        BootstrapSecurityManager(URLClassLoader target) {
            this.target = target;
        }
    
        @Override
        public void checkPermission(Permission permission) {
            synchronized (this) {
                if (initialised) {
                    return;
                }
                if (System.in == null) {
                    // Still starting up
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:58:56 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

                insertLogin(user);
            });
        }
    
        protected void insertLogin(final Object member) {
            // nothing
        }
    
        @Override
        protected void checkPermission(final LoginHandlingResource resource) throws LoginRequiredException {
            if (FessAdminAction.class.isAssignableFrom(resource.getActionClass())) {
                getSavedUserBean().ifPresent(user -> {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

            new SecurityManager() {
              @Override
              public void checkAccess(Thread t) {
                throw new SecurityException();
              }
    
              @Override
              public void checkPermission(Permission perm) {
                // Do nothing so we can clear the security manager at the end
              }
            });
        try {
          final String oldName = Thread.currentThread().getName();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

            new SecurityManager() {
              @Override
              public void checkAccess(Thread t) {
                throw new SecurityException();
              }
    
              @Override
              public void checkPermission(Permission perm) {
                // Do nothing so we can clear the security manager at the end
              }
            });
        try {
          final String oldName = Thread.currentThread().getName();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestEnvironmentIntegrationTest.groovy

                        assert getClass().getName().equals(System.getProperty("java.security.manager"));
                    }
    
                    @Override
                    public void checkPermission(Permission permission) {
                    }
                }
            """.stripIndent()
            buildFile << """
                java {
                    toolchain {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestExecutionIntegrationTest.groovy

                    public void testSecurityManagerCleanExit() {
                        System.setSecurityManager(new SecurityManager() {
                            @Override
                            public void checkPermission(Permission perm) {
                                if ("setSecurityManager".equals(perm.getName())) {
                                    throw new SecurityException("You cannot replace this security manager!");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          }
        }
        assertThat(file).isNotNull();
        SecurityManager disallowFilesSecurityManager =
            new SecurityManager() {
              @Override
              public void checkPermission(Permission p) {
                if (readClassPathFiles.implies(p)) {
                  throw new SecurityException("Disallowed: " + p);
                }
              }
            };
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 26 14:02:27 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top