Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for generic_permission (0.68 sec)

  1. src/syscall/syscall_linux.go

    	if flags&_AT_EACCESS != 0 {
    		uid = Geteuid()
    		if uid != 0 && isCapDacOverrideSet() {
    			// If CAP_DAC_OVERRIDE is set, file access check is
    			// done by the kernel in the same way as for root
    			// (see generic_permission() in the Linux sources).
    			uid = 0
    		}
    	} else {
    		uid = Getuid()
    	}
    
    	if uid == 0 {
    		if mode&1 == 0 {
    			// Root can read and write any file.
    			return nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    	if flags&AT_EACCESS != 0 {
    		uid = Geteuid()
    		if uid != 0 && isCapDacOverrideSet() {
    			// If CAP_DAC_OVERRIDE is set, file access check is
    			// done by the kernel in the same way as for root
    			// (see generic_permission() in the Linux sources).
    			uid = 0
    		}
    	} else {
    		uid = Getuid()
    	}
    
    	if uid == 0 {
    		if mode&1 == 0 {
    			// Root can read and write any file.
    			return nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
Back to top