-
Notifications
You must be signed in to change notification settings - Fork 24
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
msmq:MessageQueuePermission are not applied #8902
Comments
I'd be happy to contribute a PR with a fix |
Good eye. But I don't see the same problem in ComPlus\ca\cpapprolesched.cpp. The |
Sorry - I was looking at an older version of cpapprolesched.cpp. It was fixed here |
I've got a PR for this almost ready to go. I had a quick look through other tables, and couldn't find any more similar issues. But they are quite tricky to do a full search for. |
I made this branch but haven't had the access to test it yet. Feel free to take what you need. I also found a small thing in mqsched.cpp that I think should be included |
I'm out of town this weekend so I won't have the time to submit anything until next week anyway |
I'll pull in the cost change. I'll add in a basic compile unit test to validate that the right tables and contents are being populated. |
And updated decompiler to Wix4 table names etc in line with firewall CA. Fixes wixtoolset/issues#8902 Signed-off-by: Bevan Weiss <[email protected]>
And updated decompiler to Wix4 table names etc in line with firewall CA. Fixes wixtoolset/issues#8902 Signed-off-by: Bevan Weiss <[email protected]>
WiX Version
5.0.1
.NET or MSBuild or Visual Studio Version
Visual Studio 17.12.4
HeatWave Version
1.0.4
Windows Version
Win10 22H2
Repro Repo
No response
Repro Steps
Actual Result
Check "Computer Management" -> "Services and Applications" -> "Message Queuing" -> "Private Queues" -> "example-queue" -> right click -> Properties -> Security.
The permissions for Everyone are not applied.
Expected Result
I expected Everyone to have the access specified.
The bug is in msqueueshed.cpp
The 2 SQL permission queries at the top of mqqueuesched.cpp are missing the 'Wix4' prefix for the Component_ column so it never reads any permissions and will always leave the queue with default Administrator permissions.
It doesn't complain about this error as far as I could see. I think it should fail the CA with an invalid syntax error.
I searched for this pattern and the same bug is in cpapprolesched.cpp (vcsUserInApplicationRoleQuery, vcsGroupInApplicationRoleQuery)
Acknowledgements
The text was updated successfully, but these errors were encountered: