mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-09-11 21:17:40 +03:00
Update go-acl
This commit is contained in:
parent
c3fd855831
commit
11e824bd13
2
go.mod
2
go.mod
@ -9,7 +9,7 @@ require (
|
||||
github.com/dchest/safefile v0.0.0-20151022103144-855e8d98f185
|
||||
github.com/hashicorp/go-immutable-radix v1.3.1
|
||||
github.com/hashicorp/golang-lru v0.5.4
|
||||
github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95
|
||||
github.com/hectane/go-acl v0.0.0-20230122075934-ca0b05cb1adb
|
||||
github.com/jedisct1/dlog v0.0.0-20210927135244-3381aa132e7f
|
||||
github.com/jedisct1/go-clocksmith v0.0.0-20210101121932-da382b963868
|
||||
github.com/jedisct1/go-dnsstamps v0.0.0-20220328103132-6fb2da762370
|
||||
|
4
go.sum
4
go.sum
@ -347,8 +347,8 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO
|
||||
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
|
||||
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
|
||||
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
|
||||
github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95 h1:S4qyfL2sEm5Budr4KVMyEniCy+PbS55651I/a+Kn/NQ=
|
||||
github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95/go.mod h1:QiyDdbZLaJ/mZP4Zwc9g2QsfaEA4o7XvvgZegSci5/E=
|
||||
github.com/hectane/go-acl v0.0.0-20230122075934-ca0b05cb1adb h1:PGufWXXDq9yaev6xX1YQauaO1MV90e6Mpoq1I7Lz/VM=
|
||||
github.com/hectane/go-acl v0.0.0-20230122075934-ca0b05cb1adb/go.mod h1:QiyDdbZLaJ/mZP4Zwc9g2QsfaEA4o7XvvgZegSci5/E=
|
||||
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
|
||||
github.com/huandu/xstrings v1.0.0/go.mod h1:4qWG/gcEcfX4z/mBDHJ++3ReCw9ibxbsNJbcucJdbSo=
|
||||
github.com/huandu/xstrings v1.2.0/go.mod h1:DvyZB1rfVYsBIigL8HwpZgxHwXozlTgGqn63UyNX5k4=
|
||||
|
4
vendor/github.com/hectane/go-acl/api/acl.go
generated
vendored
4
vendor/github.com/hectane/go-acl/api/acl.go
generated
vendored
@ -85,14 +85,14 @@ type ExplicitAccess struct {
|
||||
|
||||
// https://msdn.microsoft.com/en-us/library/windows/desktop/aa379576.aspx
|
||||
func SetEntriesInAcl(entries []ExplicitAccess, oldAcl windows.Handle, newAcl *windows.Handle) error {
|
||||
ret, _, err := procSetEntriesInAclW.Call(
|
||||
ret, _, _ := procSetEntriesInAclW.Call(
|
||||
uintptr(len(entries)),
|
||||
uintptr(unsafe.Pointer(&entries[0])),
|
||||
uintptr(oldAcl),
|
||||
uintptr(unsafe.Pointer(newAcl)),
|
||||
)
|
||||
if ret != 0 {
|
||||
return err
|
||||
return windows.Errno(ret)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
8
vendor/github.com/hectane/go-acl/api/secinfo.go
generated
vendored
8
vendor/github.com/hectane/go-acl/api/secinfo.go
generated
vendored
@ -50,7 +50,7 @@
|
||||
|
||||
// https://msdn.microsoft.com/en-us/library/windows/desktop/aa446645.aspx
|
||||
func GetNamedSecurityInfo(objectName string, objectType int32, secInfo uint32, owner, group **windows.SID, dacl, sacl, secDesc *windows.Handle) error {
|
||||
ret, _, err := procGetNamedSecurityInfoW.Call(
|
||||
ret, _, _ := procGetNamedSecurityInfoW.Call(
|
||||
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(objectName))),
|
||||
uintptr(objectType),
|
||||
uintptr(secInfo),
|
||||
@ -61,14 +61,14 @@ func GetNamedSecurityInfo(objectName string, objectType int32, secInfo uint32, o
|
||||
uintptr(unsafe.Pointer(secDesc)),
|
||||
)
|
||||
if ret != 0 {
|
||||
return err
|
||||
return windows.Errno(ret)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// https://msdn.microsoft.com/en-us/library/windows/desktop/aa379579.aspx
|
||||
func SetNamedSecurityInfo(objectName string, objectType int32, secInfo uint32, owner, group *windows.SID, dacl, sacl windows.Handle) error {
|
||||
ret, _, err := procSetNamedSecurityInfoW.Call(
|
||||
ret, _, _ := procSetNamedSecurityInfoW.Call(
|
||||
uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(objectName))),
|
||||
uintptr(objectType),
|
||||
uintptr(secInfo),
|
||||
@ -78,7 +78,7 @@ func SetNamedSecurityInfo(objectName string, objectType int32, secInfo uint32, o
|
||||
uintptr(sacl),
|
||||
)
|
||||
if ret != 0 {
|
||||
return err
|
||||
return windows.Errno(ret)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -251,7 +251,7 @@ github.com/hashicorp/hcl/hcl/token
|
||||
github.com/hashicorp/hcl/json/parser
|
||||
github.com/hashicorp/hcl/json/scanner
|
||||
github.com/hashicorp/hcl/json/token
|
||||
# github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95
|
||||
# github.com/hectane/go-acl v0.0.0-20230122075934-ca0b05cb1adb
|
||||
## explicit; go 1.12
|
||||
github.com/hectane/go-acl
|
||||
github.com/hectane/go-acl/api
|
||||
|
Loading…
Reference in New Issue
Block a user