Re: how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- From: "Eugene Gershnik" <gershnik@xxxxxxxxxxx>
- Date: Fri, 20 May 2005 12:17:58 -0700
Allen wrote:
> Eugene Gershnik wrote:
>>> , then some GUI thread will be generated by my service,
>>
>> Which breaks windows security but we already discussed that in
>> another thread.
>
> Actually security is not a very big issue for my program, this
> service often starts a program with admin privilege.
You are missing the real issue. As soon as you pop-up UI in the interactive
window station you escape all windows security protection. Other GUI
applications running under non-privileged account can send you window
messages, crash you and execute code inside your process which runs under
most privileged account. This may not be an issue for *your* application but
it is usually an issue for the user of the computer it runs on.
>>> this GUI thread sometimes
>>> need to know the SecurityDescriptor
>>
>>
>> You mean SID, right?
>
> The SECURITY_DESCRIPTOR structure, which includes sidOwner, sidGroup,
> DACL, and SACL.
Users don't have security descriptors. Resources do.
>> Anyways if an API fails the most important piece of information is
>> the error code. What is it?
>
> There is no error code, let me attach a snapshot of the message box.
You said that OpenProcessToken fails, didn't you?
--
Eugene
.
- References:
- how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- From: Allen
- Re: how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- From: Eugene Gershnik
- Re: how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- From: Allen
- Re: how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- From: Eugene Gershnik
- Re: how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- From: Allen
- how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- Prev by Date: Re: how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- Next by Date: Re: how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- Previous by thread: Re: how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- Next by thread: Re: how to obtain SecurityDescriptor of a logoned user on NT4 SP6a from a service running with LocalSystem account?
- Index(es):
Relevant Pages
|
|