mirror of https://github.com/containers/podman.git
				
				
				
			Merge pull request #23200 from containers/renovate/golang.org-x-term-0.x
fix(deps): update module golang.org/x/term to v0.22.0
This commit is contained in:
		
						commit
						64f440d31f
					
				
							
								
								
									
										4
									
								
								go.mod
								
								
								
								
							
							
						
						
									
										4
									
								
								go.mod
								
								
								
								
							|  | @ -75,8 +75,8 @@ require ( | ||||||
| 	golang.org/x/exp v0.0.0-20240531132922-fd00a4e0eefc | 	golang.org/x/exp v0.0.0-20240531132922-fd00a4e0eefc | ||||||
| 	golang.org/x/net v0.26.0 | 	golang.org/x/net v0.26.0 | ||||||
| 	golang.org/x/sync v0.7.0 | 	golang.org/x/sync v0.7.0 | ||||||
| 	golang.org/x/sys v0.21.0 | 	golang.org/x/sys v0.22.0 | ||||||
| 	golang.org/x/term v0.21.0 | 	golang.org/x/term v0.22.0 | ||||||
| 	golang.org/x/text v0.16.0 | 	golang.org/x/text v0.16.0 | ||||||
| 	google.golang.org/protobuf v1.34.2 | 	google.golang.org/protobuf v1.34.2 | ||||||
| 	gopkg.in/inf.v0 v0.9.1 | 	gopkg.in/inf.v0 v0.9.1 | ||||||
|  |  | ||||||
							
								
								
									
										8
									
								
								go.sum
								
								
								
								
							
							
						
						
									
										8
									
								
								go.sum
								
								
								
								
							|  | @ -677,16 +677,16 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||||
| golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||||
| golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||||
| golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= | golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= | ||||||
| golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= | golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= | ||||||
| golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= | golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= | ||||||
| golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= | ||||||
| golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= | golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= | ||||||
| golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= | golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= | ||||||
| golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= | golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= | ||||||
| golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= | golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= | ||||||
| golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= | golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= | ||||||
| golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= | golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk= | ||||||
| golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= | golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4= | ||||||
| golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||||
| golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||||
| golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||||
|  |  | ||||||
|  | @ -50,3 +50,8 @@ func (m *mremapMmapper) Mremap(oldData []byte, newLength int, flags int) (data [ | ||||||
| func Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) { | func Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) { | ||||||
| 	return mapper.Mremap(oldData, newLength, flags) | 	return mapper.Mremap(oldData, newLength, flags) | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | func MremapPtr(oldAddr unsafe.Pointer, oldSize uintptr, newAddr unsafe.Pointer, newSize uintptr, flags int) (ret unsafe.Pointer, err error) { | ||||||
|  | 	xaddr, err := mapper.mremap(uintptr(oldAddr), oldSize, newSize, flags, uintptr(newAddr)) | ||||||
|  | 	return unsafe.Pointer(xaddr), err | ||||||
|  | } | ||||||
|  |  | ||||||
|  | @ -542,6 +542,18 @@ func SysctlKinfoProcSlice(name string, args ...int) ([]KinfoProc, error) { | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | //sys	pthread_chdir_np(path string) (err error)
 | ||||||
|  | 
 | ||||||
|  | func PthreadChdir(path string) (err error) { | ||||||
|  | 	return pthread_chdir_np(path) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | //sys	pthread_fchdir_np(fd int) (err error)
 | ||||||
|  | 
 | ||||||
|  | func PthreadFchdir(fd int) (err error) { | ||||||
|  | 	return pthread_fchdir_np(fd) | ||||||
|  | } | ||||||
|  | 
 | ||||||
| //sys	sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error)
 | //sys	sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error)
 | ||||||
| 
 | 
 | ||||||
| //sys	shmat(id int, addr uintptr, flag int) (ret uintptr, err error)
 | //sys	shmat(id int, addr uintptr, flag int) (ret uintptr, err error)
 | ||||||
|  |  | ||||||
|  | @ -154,6 +154,15 @@ func Munmap(b []byte) (err error) { | ||||||
| 	return mapper.Munmap(b) | 	return mapper.Munmap(b) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | func MmapPtr(fd int, offset int64, addr unsafe.Pointer, length uintptr, prot int, flags int) (ret unsafe.Pointer, err error) { | ||||||
|  | 	xaddr, err := mapper.mmap(uintptr(addr), length, prot, flags, fd, offset) | ||||||
|  | 	return unsafe.Pointer(xaddr), err | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | func MunmapPtr(addr unsafe.Pointer, length uintptr) (err error) { | ||||||
|  | 	return mapper.munmap(uintptr(addr), length) | ||||||
|  | } | ||||||
|  | 
 | ||||||
| func Read(fd int, p []byte) (n int, err error) { | func Read(fd int, p []byte) (n int, err error) { | ||||||
| 	n, err = read(fd, p) | 	n, err = read(fd, p) | ||||||
| 	if raceenabled { | 	if raceenabled { | ||||||
|  |  | ||||||
|  | @ -760,6 +760,39 @@ var libc_sysctl_trampoline_addr uintptr | ||||||
| 
 | 
 | ||||||
| // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 | ||||||
| 
 | 
 | ||||||
|  | func pthread_chdir_np(path string) (err error) { | ||||||
|  | 	var _p0 *byte | ||||||
|  | 	_p0, err = BytePtrFromString(path) | ||||||
|  | 	if err != nil { | ||||||
|  | 		return | ||||||
|  | 	} | ||||||
|  | 	_, _, e1 := syscall_syscall(libc_pthread_chdir_np_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||||||
|  | 	if e1 != 0 { | ||||||
|  | 		err = errnoErr(e1) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | var libc_pthread_chdir_np_trampoline_addr uintptr | ||||||
|  | 
 | ||||||
|  | //go:cgo_import_dynamic libc_pthread_chdir_np pthread_chdir_np "/usr/lib/libSystem.B.dylib"
 | ||||||
|  | 
 | ||||||
|  | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 | ||||||
|  | 
 | ||||||
|  | func pthread_fchdir_np(fd int) (err error) { | ||||||
|  | 	_, _, e1 := syscall_syscall(libc_pthread_fchdir_np_trampoline_addr, uintptr(fd), 0, 0) | ||||||
|  | 	if e1 != 0 { | ||||||
|  | 		err = errnoErr(e1) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | var libc_pthread_fchdir_np_trampoline_addr uintptr | ||||||
|  | 
 | ||||||
|  | //go:cgo_import_dynamic libc_pthread_fchdir_np pthread_fchdir_np "/usr/lib/libSystem.B.dylib"
 | ||||||
|  | 
 | ||||||
|  | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 | ||||||
|  | 
 | ||||||
| func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { | func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { | ||||||
| 	_, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) | 	_, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) | ||||||
| 	if e1 != 0 { | 	if e1 != 0 { | ||||||
|  |  | ||||||
|  | @ -228,6 +228,16 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 | ||||||
| GLOBL	·libc_sysctl_trampoline_addr(SB), RODATA, $8 | GLOBL	·libc_sysctl_trampoline_addr(SB), RODATA, $8 | ||||||
| DATA	·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) | DATA	·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) | ||||||
| 
 | 
 | ||||||
|  | TEXT libc_pthread_chdir_np_trampoline<>(SB),NOSPLIT,$0-0 | ||||||
|  | 	JMP	libc_pthread_chdir_np(SB) | ||||||
|  | GLOBL	·libc_pthread_chdir_np_trampoline_addr(SB), RODATA, $8 | ||||||
|  | DATA	·libc_pthread_chdir_np_trampoline_addr(SB)/8, $libc_pthread_chdir_np_trampoline<>(SB) | ||||||
|  | 
 | ||||||
|  | TEXT libc_pthread_fchdir_np_trampoline<>(SB),NOSPLIT,$0-0 | ||||||
|  | 	JMP	libc_pthread_fchdir_np(SB) | ||||||
|  | GLOBL	·libc_pthread_fchdir_np_trampoline_addr(SB), RODATA, $8 | ||||||
|  | DATA	·libc_pthread_fchdir_np_trampoline_addr(SB)/8, $libc_pthread_fchdir_np_trampoline<>(SB) | ||||||
|  | 
 | ||||||
| TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0 | TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0 | ||||||
| 	JMP	libc_sendfile(SB) | 	JMP	libc_sendfile(SB) | ||||||
| GLOBL	·libc_sendfile_trampoline_addr(SB), RODATA, $8 | GLOBL	·libc_sendfile_trampoline_addr(SB), RODATA, $8 | ||||||
|  |  | ||||||
|  | @ -760,6 +760,39 @@ var libc_sysctl_trampoline_addr uintptr | ||||||
| 
 | 
 | ||||||
| // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 | ||||||
| 
 | 
 | ||||||
|  | func pthread_chdir_np(path string) (err error) { | ||||||
|  | 	var _p0 *byte | ||||||
|  | 	_p0, err = BytePtrFromString(path) | ||||||
|  | 	if err != nil { | ||||||
|  | 		return | ||||||
|  | 	} | ||||||
|  | 	_, _, e1 := syscall_syscall(libc_pthread_chdir_np_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) | ||||||
|  | 	if e1 != 0 { | ||||||
|  | 		err = errnoErr(e1) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | var libc_pthread_chdir_np_trampoline_addr uintptr | ||||||
|  | 
 | ||||||
|  | //go:cgo_import_dynamic libc_pthread_chdir_np pthread_chdir_np "/usr/lib/libSystem.B.dylib"
 | ||||||
|  | 
 | ||||||
|  | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 | ||||||
|  | 
 | ||||||
|  | func pthread_fchdir_np(fd int) (err error) { | ||||||
|  | 	_, _, e1 := syscall_syscall(libc_pthread_fchdir_np_trampoline_addr, uintptr(fd), 0, 0) | ||||||
|  | 	if e1 != 0 { | ||||||
|  | 		err = errnoErr(e1) | ||||||
|  | 	} | ||||||
|  | 	return | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | var libc_pthread_fchdir_np_trampoline_addr uintptr | ||||||
|  | 
 | ||||||
|  | //go:cgo_import_dynamic libc_pthread_fchdir_np pthread_fchdir_np "/usr/lib/libSystem.B.dylib"
 | ||||||
|  | 
 | ||||||
|  | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 | ||||||
|  | 
 | ||||||
| func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { | func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { | ||||||
| 	_, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) | 	_, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) | ||||||
| 	if e1 != 0 { | 	if e1 != 0 { | ||||||
|  |  | ||||||
|  | @ -228,6 +228,16 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 | ||||||
| GLOBL	·libc_sysctl_trampoline_addr(SB), RODATA, $8 | GLOBL	·libc_sysctl_trampoline_addr(SB), RODATA, $8 | ||||||
| DATA	·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) | DATA	·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) | ||||||
| 
 | 
 | ||||||
|  | TEXT libc_pthread_chdir_np_trampoline<>(SB),NOSPLIT,$0-0 | ||||||
|  | 	JMP	libc_pthread_chdir_np(SB) | ||||||
|  | GLOBL	·libc_pthread_chdir_np_trampoline_addr(SB), RODATA, $8 | ||||||
|  | DATA	·libc_pthread_chdir_np_trampoline_addr(SB)/8, $libc_pthread_chdir_np_trampoline<>(SB) | ||||||
|  | 
 | ||||||
|  | TEXT libc_pthread_fchdir_np_trampoline<>(SB),NOSPLIT,$0-0 | ||||||
|  | 	JMP	libc_pthread_fchdir_np(SB) | ||||||
|  | GLOBL	·libc_pthread_fchdir_np_trampoline_addr(SB), RODATA, $8 | ||||||
|  | DATA	·libc_pthread_fchdir_np_trampoline_addr(SB)/8, $libc_pthread_fchdir_np_trampoline<>(SB) | ||||||
|  | 
 | ||||||
| TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0 | TEXT libc_sendfile_trampoline<>(SB),NOSPLIT,$0-0 | ||||||
| 	JMP	libc_sendfile(SB) | 	JMP	libc_sendfile(SB) | ||||||
| GLOBL	·libc_sendfile_trampoline_addr(SB), RODATA, $8 | GLOBL	·libc_sendfile_trampoline_addr(SB), RODATA, $8 | ||||||
|  |  | ||||||
|  | @ -894,7 +894,7 @@ type ACL struct { | ||||||
| 	aclRevision byte | 	aclRevision byte | ||||||
| 	sbz1        byte | 	sbz1        byte | ||||||
| 	aclSize     uint16 | 	aclSize     uint16 | ||||||
| 	aceCount    uint16 | 	AceCount    uint16 | ||||||
| 	sbz2        uint16 | 	sbz2        uint16 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | @ -1087,6 +1087,27 @@ type EXPLICIT_ACCESS struct { | ||||||
| 	Trustee           TRUSTEE | 	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.
 | // This type is the union inside of TRUSTEE and must be created using one of the TrusteeValueFrom* functions.
 | ||||||
| type TrusteeValue uintptr | 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	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	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.
 | // Control returns the security descriptor control bits.
 | ||||||
| func (sd *SECURITY_DESCRIPTOR) Control() (control SECURITY_DESCRIPTOR_CONTROL, revision uint32, err error) { | func (sd *SECURITY_DESCRIPTOR) Control() (control SECURITY_DESCRIPTOR_CONTROL, revision uint32, err error) { | ||||||
|  |  | ||||||
|  | @ -91,6 +91,7 @@ var ( | ||||||
| 	procEnumServicesStatusExW                                = modadvapi32.NewProc("EnumServicesStatusExW") | 	procEnumServicesStatusExW                                = modadvapi32.NewProc("EnumServicesStatusExW") | ||||||
| 	procEqualSid                                             = modadvapi32.NewProc("EqualSid") | 	procEqualSid                                             = modadvapi32.NewProc("EqualSid") | ||||||
| 	procFreeSid                                              = modadvapi32.NewProc("FreeSid") | 	procFreeSid                                              = modadvapi32.NewProc("FreeSid") | ||||||
|  | 	procGetAce                                               = modadvapi32.NewProc("GetAce") | ||||||
| 	procGetLengthSid                                         = modadvapi32.NewProc("GetLengthSid") | 	procGetLengthSid                                         = modadvapi32.NewProc("GetLengthSid") | ||||||
| 	procGetNamedSecurityInfoW                                = modadvapi32.NewProc("GetNamedSecurityInfoW") | 	procGetNamedSecurityInfoW                                = modadvapi32.NewProc("GetNamedSecurityInfoW") | ||||||
| 	procGetSecurityDescriptorControl                         = modadvapi32.NewProc("GetSecurityDescriptorControl") | 	procGetSecurityDescriptorControl                         = modadvapi32.NewProc("GetSecurityDescriptorControl") | ||||||
|  | @ -1224,6 +1225,14 @@ func setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCE | ||||||
| 	return | 	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) { | 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))) | 	r1, _, e1 := syscall.Syscall(procSetKernelObjectSecurity.Addr(), 3, uintptr(handle), uintptr(securityInformation), uintptr(unsafe.Pointer(securityDescriptor))) | ||||||
| 	if r1 == 0 { | 	if r1 == 0 { | ||||||
|  |  | ||||||
|  | @ -1213,7 +1213,7 @@ golang.org/x/oauth2/internal | ||||||
| ## explicit; go 1.18 | ## explicit; go 1.18 | ||||||
| golang.org/x/sync/errgroup | golang.org/x/sync/errgroup | ||||||
| golang.org/x/sync/semaphore | golang.org/x/sync/semaphore | ||||||
| # golang.org/x/sys v0.21.0 | # golang.org/x/sys v0.22.0 | ||||||
| ## explicit; go 1.18 | ## explicit; go 1.18 | ||||||
| golang.org/x/sys/cpu | golang.org/x/sys/cpu | ||||||
| golang.org/x/sys/plan9 | golang.org/x/sys/plan9 | ||||||
|  | @ -1221,7 +1221,7 @@ golang.org/x/sys/unix | ||||||
| golang.org/x/sys/windows | golang.org/x/sys/windows | ||||||
| golang.org/x/sys/windows/registry | golang.org/x/sys/windows/registry | ||||||
| golang.org/x/sys/windows/svc/eventlog | golang.org/x/sys/windows/svc/eventlog | ||||||
| # golang.org/x/term v0.21.0 | # golang.org/x/term v0.22.0 | ||||||
| ## explicit; go 1.18 | ## explicit; go 1.18 | ||||||
| golang.org/x/term | golang.org/x/term | ||||||
| # golang.org/x/text v0.16.0 | # golang.org/x/text v0.16.0 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue