mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-01 00:23:56 +08:00 
			
		
		
		
	vendor: update buildkit to v0.15.1
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										24
									
								
								vendor/golang.org/x/sys/windows/security_windows.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								vendor/golang.org/x/sys/windows/security_windows.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -894,7 +894,7 @@ type ACL struct { | ||||
| 	aclRevision byte | ||||
| 	sbz1        byte | ||||
| 	aclSize     uint16 | ||||
| 	aceCount    uint16 | ||||
| 	AceCount    uint16 | ||||
| 	sbz2        uint16 | ||||
| } | ||||
|  | ||||
| @@ -1087,6 +1087,27 @@ type EXPLICIT_ACCESS struct { | ||||
| 	Trustee           TRUSTEE | ||||
| } | ||||
|  | ||||
| // https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-ace_header | ||||
| type ACE_HEADER struct { | ||||
| 	AceType  uint8 | ||||
| 	AceFlags uint8 | ||||
| 	AceSize  uint16 | ||||
| } | ||||
|  | ||||
| // https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-access_allowed_ace | ||||
| type ACCESS_ALLOWED_ACE struct { | ||||
| 	Header   ACE_HEADER | ||||
| 	Mask     ACCESS_MASK | ||||
| 	SidStart uint32 | ||||
| } | ||||
|  | ||||
| const ( | ||||
| 	// Constants for AceType | ||||
| 	// https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-ace_header | ||||
| 	ACCESS_ALLOWED_ACE_TYPE = 0 | ||||
| 	ACCESS_DENIED_ACE_TYPE  = 1 | ||||
| ) | ||||
|  | ||||
| // This type is the union inside of TRUSTEE and must be created using one of the TrusteeValueFrom* functions. | ||||
| type TrusteeValue uintptr | ||||
|  | ||||
| @@ -1158,6 +1179,7 @@ type OBJECTS_AND_NAME struct { | ||||
| //sys	makeSelfRelativeSD(absoluteSD *SECURITY_DESCRIPTOR, selfRelativeSD *SECURITY_DESCRIPTOR, selfRelativeSDSize *uint32) (err error) = advapi32.MakeSelfRelativeSD | ||||
|  | ||||
| //sys	setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCESS, oldACL *ACL, newACL **ACL) (ret error) = advapi32.SetEntriesInAclW | ||||
| //sys	GetAce(acl *ACL, aceIndex uint32, pAce **ACCESS_ALLOWED_ACE) (ret error) = advapi32.GetAce | ||||
|  | ||||
| // Control returns the security descriptor control bits. | ||||
| func (sd *SECURITY_DESCRIPTOR) Control() (control SECURITY_DESCRIPTOR_CONTROL, revision uint32, err error) { | ||||
|   | ||||
							
								
								
									
										9
									
								
								vendor/golang.org/x/sys/windows/zsyscall_windows.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								vendor/golang.org/x/sys/windows/zsyscall_windows.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -91,6 +91,7 @@ var ( | ||||
| 	procEnumServicesStatusExW                                = modadvapi32.NewProc("EnumServicesStatusExW") | ||||
| 	procEqualSid                                             = modadvapi32.NewProc("EqualSid") | ||||
| 	procFreeSid                                              = modadvapi32.NewProc("FreeSid") | ||||
| 	procGetAce                                               = modadvapi32.NewProc("GetAce") | ||||
| 	procGetLengthSid                                         = modadvapi32.NewProc("GetLengthSid") | ||||
| 	procGetNamedSecurityInfoW                                = modadvapi32.NewProc("GetNamedSecurityInfoW") | ||||
| 	procGetSecurityDescriptorControl                         = modadvapi32.NewProc("GetSecurityDescriptorControl") | ||||
| @@ -1224,6 +1225,14 @@ func setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCE | ||||
| 	return | ||||
| } | ||||
|  | ||||
| func GetAce(acl *ACL, aceIndex uint32, pAce **ACCESS_ALLOWED_ACE) (ret error) { | ||||
| 	r0, _, _ := syscall.Syscall(procGetAce.Addr(), 3, uintptr(unsafe.Pointer(acl)), uintptr(aceIndex), uintptr(unsafe.Pointer(pAce))) | ||||
| 	if r0 == 0 { | ||||
| 		ret = GetLastError() | ||||
| 	} | ||||
| 	return | ||||
| } | ||||
|  | ||||
| func SetKernelObjectSecurity(handle Handle, securityInformation SECURITY_INFORMATION, securityDescriptor *SECURITY_DESCRIPTOR) (err error) { | ||||
| 	r1, _, e1 := syscall.Syscall(procSetKernelObjectSecurity.Addr(), 3, uintptr(handle), uintptr(securityInformation), uintptr(unsafe.Pointer(securityDescriptor))) | ||||
| 	if r1 == 0 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 CrazyMax
					CrazyMax