Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for isSecureMode (0.14 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/security_nonunix.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !unix
    
    package runtime
    
    func isSecureMode() bool {
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 256 bytes
    - Viewed (0)
  3. src/runtime/security_linux.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    import _ "unsafe"
    
    func initSecureMode() {
    	// We have already initialized the secureMode bool in sysauxv.
    }
    
    func isSecureMode() bool {
    	return secureMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 335 bytes
    - Viewed (0)
  4. src/runtime/security_aix.go

    // synchronization primitives.
    var secureMode bool
    
    func initSecureMode() {
    	secureMode = !(getuid() == geteuid() && getgid() == getegid())
    }
    
    func isSecureMode() bool {
    	return secureMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 449 bytes
    - Viewed (0)
  5. src/runtime/security_issetugid.go

    package runtime
    
    // secureMode is only ever mutated in schedinit, so we don't need to worry about
    // synchronization primitives.
    var secureMode bool
    
    func initSecureMode() {
    	secureMode = issetugid() == 1
    }
    
    func isSecureMode() bool {
    	return secureMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 502 bytes
    - Viewed (0)
  6. 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)
  7. 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