-
Notifications
You must be signed in to change notification settings - Fork 9
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
Should check for necessary access #4
Comments
on windows, every thing will be resolved by using the win32 api because it has functions for all of the things that are issues here. |
In order to figure out exactly which calls to make, I'll need to not only know which DLLs are involved, but also the permission names/UUIDs and such that are involved. If you can point me in the right direction of finding out if a given user has shutdown privileges, it would be much appreciated. All I know as of now is that the local security policy of a windows box can restrict it. As to how to check... not there yet. |
A better idea would be to force the application to run only with administrative privileges by embedding a manifest. |
Good idea. Maybe using this: http://github.com/akavel/rsrc Care to submit one? Sent from my iPhone
|
Care to submit what? A manifest? |
Yes. Sent from my iPhone
|
Sure. |
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level='requireAdministrator' uiAccess='false' />
</requestedPrivileges>
</security>
</trustInfo>
</assembly> This is a manifest that will force the user to provide administrator credentials and the application will run elevated. Its 100% correct and working (I know that for certain because I copied it from one of my own applications). |
I'll test and make sure that the tool I've got embeds the necessary manifest, and that it works. If all goes well, what you can do if you want to get on the contributors list is the following:
Then, my friend, you'll be listed as a contributor. |
Hahaha, Thanks. |
What's Up Andy, stopped all development? |
Nope. Working on an event-based branch to remove the need for polling. |
That is a tough job. Especially in windows. You need a |
I actually completed it with a callout to powershell and |
Have you updated the repository? |
You will receive an alert when I do. |
Something wrong? |
Unix checks still outstanding. This appears to work for Windows. I also gave it a more meaningful name. You also didn't create an assets directory like I asked, but I think it will be okay in the base directory with the new name. |
In keeping with the zero-surprises mode of thinking, deadman should detect, at startup, whether or not it is capable of shutting down. On *nix systems, this means checking whether or not it has superuser access. On windows, further research is required.
The text was updated successfully, but these errors were encountered: