-
Notifications
You must be signed in to change notification settings - Fork 589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows: add GetAce Windows API #191
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
This PR (HEAD: c973250) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/578976. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
c973250
to
b911428
Compare
This PR (HEAD: b911428) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/578976. Important tips:
|
Message from Claudiu Belu: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
b911428
to
80961ac
Compare
This PR (HEAD: 80961ac) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/578976. Important tips:
|
Message from Alex Brainman: Patch Set 4: Commit-Queue+1 (6 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-05-31T09:26:06Z","revision":"d735e1d438321cc1c168e3bb56f327a3ecb40155"} Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Alex Brainman: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 4: This CL has failed the run. Reason: Failed Tryjobs:
Build or test failure, click here for results. Additional links for debugging:
Error:
Additional links for debugging:
Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Alex Brainman: Patch Set 4: Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-05-31T09:37:15Z","revision":"d735e1d438321cc1c168e3bb56f327a3ecb40155"} Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Alex Brainman: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 4: This CL has failed the run. Reason: Tryjob golang/try/x_sys-gotip-linux-amd64-misccompile has failed with summary (view all results):
Error:
Additional links for debugging:
Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
80961ac
to
9caf768
Compare
This PR (HEAD: 9caf768) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/578976. Important tips:
|
9caf768
to
9cd77c1
Compare
This PR (HEAD: 9cd77c1) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/578976. Important tips:
|
Message from Claudiu Belu: Patch Set 4: (5 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Alex Brainman: Patch Set 6: Commit-Queue+1 (11 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 6: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-06-13T10:24:48Z","revision":"145113fd357662d7182ed7e281f035adf3d0041d"} Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Alex Brainman: Patch Set 6: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 6: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 6: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
GetAce obtains a pointer to an access control entry (ACE) in an discretionary access control list (DACL), which controls access to an object. Adds the ACE_HEADER and ACCESS_ALLOWED_ACE structs. Adds GetEntriesFromACL function which returns an array of ACEs from the given ACL if no errors have been encountered. References: - https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-ace_header - https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-access_allowed_ace - https://learn.microsoft.com/en-us/windows/win32/api/securitybaseapi/nf-securitybaseapi-getace Fixes golang/go#66850
9cd77c1
to
d14ca7f
Compare
This PR (HEAD: d14ca7f) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/578976. Important tips:
|
Message from Claudiu Belu: Patch Set 7: (11 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Alex Brainman: Patch Set 8: Commit-Queue+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 8: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-06-23T09:02:37Z","revision":"9cec0cf9f1206c8590de922752ea9eac91222c0c"} Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Alex Brainman: Patch Set 8: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 8: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Go LUCI: Patch Set 8: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from Alex Brainman: Patch Set 8: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
Message from David Chase: Patch Set 8: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
GetAce obtains a pointer to an access control entry (ACE) in an discretionary access control list (DACL), which controls access to an object. Adds the ACE_HEADER and ACCESS_ALLOWED_ACE structs. Adds GetEntriesFromACL function which returns an array of ACEs from the given ACL if no errors have been encountered. References: - https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-ace_header - https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-access_allowed_ace - https://learn.microsoft.com/en-us/windows/win32/api/securitybaseapi/nf-securitybaseapi-getace Fixes golang/go#66850 Change-Id: I98306ff7e947e586a58d563d364169a2555492f4 GitHub-Last-Rev: d14ca7f GitHub-Pull-Request: #191 Reviewed-on: https://go-review.googlesource.com/c/sys/+/578976 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Message from Damien Neil: Patch Set 8: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/578976. |
This PR is being closed because golang.org/cl/578976 has been merged. |
GetAce expects a failretval==0, and we shouldn't call GetLastError on error. Fixes golang#191 Updates golang#191
GetAce obtains a pointer to an access control entry (ACE) in an
discretionary access control list (DACL), which controls access to
an object.
Adds the ACE_HEADER and ACCESS_ALLOWED_ACE structs.
Adds GetEntriesFromACL function which returns an array of ACEs from the
given ACL if no errors have been encountered.
References:
Fixes golang/go#66850