Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for capToMask (0.13 sec)

  1. src/syscall/exec_linux.go

    			// Add the c capability to the permitted and inheritable capability mask,
    			// otherwise we will not be able to add it to the ambient capability mask.
    			caps.data[capToIndex(c)].permitted |= capToMask(c)
    			caps.data[capToIndex(c)].inheritable |= capToMask(c)
    		}
    
    		if _, _, err1 = RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(&caps.hdr)), uintptr(unsafe.Pointer(&caps.data[0])), 0); err1 != 0 {
    			goto childerror
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. src/syscall/syscall_linux.go

    	var c caps
    	c.hdr.version = _LINUX_CAPABILITY_VERSION_3
    
    	_, _, err := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(&c.hdr)), uintptr(unsafe.Pointer(&c.data[0])), 0)
    
    	return err == 0 && c.data[0].effective&capToMask(_CAP_DAC_OVERRIDE) != 0
    }
    
    //sys	faccessat(dirfd int, path string, mode uint32) (err error)
    //sys	faccessat2(dirfd int, path string, mode uint32, flags int) (err error) = _SYS_faccessat2
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top