Re: How to give access rights to already-executing processes?
From: James John Farmer (jjf_at_usenet.twinlobber.org.uk)
Date: 09/06/04
- Previous message: Romeel: "Certificate Services: Enterprise CA user certifcate details"
- In reply to: Pavel Lebedinsky: "Re: How to give access rights to already-executing processes?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 06 Sep 2004 19:30:07 GMT
In article <c9c931f5.0409051148.47abed46@posting.google.com>,
m_pll@hotmail.com says...
> Tokens don't contain access rights, they contain things liks SIDs and
> privileges. Access rights are associated with handles.
Okay, that would explain why I can't see how to do this. Thanks.
> It shouldn't matter who starts first - if the service gives
> PROCESS_DUP_HANDLE right to the application account then the app
> should be able to do OpenProcess(PROCESS_DUP_HANDLE).
>
> What exactly fails in your scenario, and with what error code?
I could've sworn when I was doing this on Friday and Saturday I was
getting ERROR_ACCESS_DENIED on the call to OpenProcess
(PROCESS_DUP_HANDLE) from the application, when the application was
started first. But I've just tried it again and wasn't able to
duplicate that error. In fact, it looks like it may all be down to a
really simple mistake I've made.
Maybe I was just tired.
Thanks for your reply; I'd never have tried this again if you hadn't.
Now I should be able to get this to work! Yippee! :)
James.
- Previous message: Romeel: "Certificate Services: Enterprise CA user certifcate details"
- In reply to: Pavel Lebedinsky: "Re: How to give access rights to already-executing processes?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|