Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isSecureMode (0.29 sec)

  1. src/runtime/security_unix.go

    )
    
    func secure() {
    	initSecureMode()
    
    	if !isSecureMode() {
    		return
    	}
    
    	// When secure mode is enabled, we do one thing: enforce specific
    	// environment variable values (currently we only force GOTRACEBACK=none)
    	//
    	// Other packages may also disable specific functionality when secure mode
    	// is enabled (determined by using linkname to call isSecureMode).
    
    	secureEnv()
    }
    
    func secureEnv() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 866 bytes
    - Viewed (0)
  2. src/runtime/signal_unix.go

    	exit(2)
    }
    
    func fatalsignal(sig uint32, c *sigctxt, gp *g, mp *m) *g {
    	if sig < uint32(len(sigtable)) {
    		print(sigtable[sig].name, "\n")
    	} else {
    		print("Signal ", sig, "\n")
    	}
    
    	if isSecureMode() {
    		exit(2)
    	}
    
    	print("PC=", hex(c.sigpc()), " m=", mp.id, " sigcode=", c.sigcode())
    	if sig == _SIGSEGV || sig == _SIGBUS {
    		print(" addr=", hex(c.fault()))
    	}
    	print("\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. src/runtime/panic.go

    		gp.m.throwing = t
    	}
    
    	// Switch to the system stack to avoid any stack growth, which may make
    	// things worse if the runtime is in a bad state.
    	systemstack(func() {
    		if isSecureMode() {
    			exit(2)
    		}
    
    		startpanic_m()
    
    		if dopanic_m(gp, pc, sp) {
    			// crash uses a decent amount of nosplit stack and we're already
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
Back to top