mirror of
				https://github.com/kardolus/chatgpt-cli.git
				synced 2024-09-08 23:15:00 +03:00 
			
		
		
		
	Bump dependencies
This commit is contained in:
		
							
								
								
									
										6
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								go.mod
									
									
									
									
									
								
							| @@ -28,9 +28,9 @@ require ( | ||||
| 	github.com/spf13/pflag v1.0.5 // indirect | ||||
| 	github.com/subosito/gotenv v1.6.0 // indirect | ||||
| 	go.uber.org/multierr v1.11.0 // indirect | ||||
| 	golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect | ||||
| 	golang.org/x/net v0.26.0 // indirect | ||||
| 	golang.org/x/sys v0.21.0 // indirect | ||||
| 	golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect | ||||
| 	golang.org/x/net v0.27.0 // indirect | ||||
| 	golang.org/x/sys v0.22.0 // indirect | ||||
| 	golang.org/x/text v0.16.0 // indirect | ||||
| 	gopkg.in/ini.v1 v1.67.0 // indirect | ||||
| ) | ||||
|   | ||||
							
								
								
									
										16
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								go.sum
									
									
									
									
									
								
							| @@ -81,14 +81,14 @@ go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= | ||||
| go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= | ||||
| golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||||
| golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= | ||||
| golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY= | ||||
| golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= | ||||
| golang.org/x/exp v0.0.0-20240707233637-46b078467d37 h1:uLDX+AfeFCct3a2C7uIWBKMJIR3CJMhcgfrUAqjRK6w= | ||||
| golang.org/x/exp v0.0.0-20240707233637-46b078467d37/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= | ||||
| golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= | ||||
| golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= | ||||
| golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= | ||||
| golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= | ||||
| golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= | ||||
| golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= | ||||
| golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| @@ -97,8 +97,8 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w | ||||
| golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= | ||||
| golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= | ||||
| golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= | ||||
| 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/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||
| golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||
| @@ -107,8 +107,8 @@ golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= | ||||
| golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= | ||||
| golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA= | ||||
| golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c= | ||||
| golang.org/x/tools v0.23.0 h1:SGsXPZ+2l4JsgaCKkx+FQ9YZ5XEtA1GZYuoDjenLjvg= | ||||
| golang.org/x/tools v0.23.0/go.mod h1:pnu6ufv6vQkll6szChhK3C3L/ruaIv5eBeztNG8wtsI= | ||||
| golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
|   | ||||
							
								
								
									
										5
									
								
								vendor/golang.org/x/sys/unix/mremap.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								vendor/golang.org/x/sys/unix/mremap.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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) { | ||||
| 	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 | ||||
| } | ||||
|   | ||||
							
								
								
									
										12
									
								
								vendor/golang.org/x/sys/unix/syscall_darwin.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/golang.org/x/sys/unix/syscall_darwin.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -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	shmat(id int, addr uintptr, flag int) (ret uintptr, err error) | ||||
|   | ||||
							
								
								
									
										9
									
								
								vendor/golang.org/x/sys/unix/syscall_unix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								vendor/golang.org/x/sys/unix/syscall_unix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -154,6 +154,15 @@ func Munmap(b []byte) (err error) { | ||||
| 	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) { | ||||
| 	n, err = read(fd, p) | ||||
| 	if raceenabled { | ||||
|   | ||||
							
								
								
									
										33
									
								
								vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -760,6 +760,39 @@ var libc_sysctl_trampoline_addr uintptr | ||||
|  | ||||
| // 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) { | ||||
| 	_, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) | ||||
| 	if e1 != 0 { | ||||
|   | ||||
							
								
								
									
										10
									
								
								vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -228,6 +228,16 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 | ||||
| GLOBL	·libc_sysctl_trampoline_addr(SB), RODATA, $8 | ||||
| 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 | ||||
| 	JMP	libc_sendfile(SB) | ||||
| GLOBL	·libc_sendfile_trampoline_addr(SB), RODATA, $8 | ||||
|   | ||||
							
								
								
									
										33
									
								
								vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -760,6 +760,39 @@ var libc_sysctl_trampoline_addr uintptr | ||||
|  | ||||
| // 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) { | ||||
| 	_, _, e1 := syscall_syscall6(libc_sendfile_trampoline_addr, uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) | ||||
| 	if e1 != 0 { | ||||
|   | ||||
							
								
								
									
										10
									
								
								vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -228,6 +228,16 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 | ||||
| GLOBL	·libc_sysctl_trampoline_addr(SB), RODATA, $8 | ||||
| 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 | ||||
| 	JMP	libc_sendfile(SB) | ||||
| GLOBL	·libc_sendfile_trampoline_addr(SB), RODATA, $8 | ||||
|   | ||||
							
								
								
									
										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 { | ||||
|   | ||||
							
								
								
									
										6
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							| @@ -105,19 +105,19 @@ github.com/subosito/gotenv | ||||
| # go.uber.org/multierr v1.11.0 | ||||
| ## explicit; go 1.19 | ||||
| go.uber.org/multierr | ||||
| # golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 | ||||
| # golang.org/x/exp v0.0.0-20240707233637-46b078467d37 | ||||
| ## explicit; go 1.20 | ||||
| golang.org/x/exp/constraints | ||||
| golang.org/x/exp/slices | ||||
| golang.org/x/exp/slog | ||||
| golang.org/x/exp/slog/internal | ||||
| golang.org/x/exp/slog/internal/buffer | ||||
| # golang.org/x/net v0.26.0 | ||||
| # golang.org/x/net v0.27.0 | ||||
| ## explicit; go 1.18 | ||||
| golang.org/x/net/html | ||||
| golang.org/x/net/html/atom | ||||
| golang.org/x/net/html/charset | ||||
| # golang.org/x/sys v0.21.0 | ||||
| # golang.org/x/sys v0.22.0 | ||||
| ## explicit; go 1.18 | ||||
| golang.org/x/sys/unix | ||||
| golang.org/x/sys/windows | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 kardolus
					kardolus