Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

Vista: Out-proc servers vs requireAdministrator

Closed Thread
 
Thread Tools Display Modes
Old 11-23-2006   #1 (permalink)
Alex Chmut
Guest
 
Posts: n/a

Vista: Out-proc servers vs requireAdministrator

Hello everybody,

By design, our product has a set of applications which have
"requireAdministrator" in the manifest and a set of other which have
"asInvoker".
These applications use (when needed) a signle multi-use out-proc server
which has "asInvoker" in the manifest and does not need to be run elevated
(we even prohibit it from running elevated).

The problem that we see is when a client app with "requireAdministrator"
instantiates that out-proc server, the server's exe gets an an elevated
instance. And there's previously running instance of server's executable
with non-elevated context, now elevated clients cannot connect to that
either, spawning a new elevated instance.

How can we get our out-proc server be instantiated only in non-elevated
multi-use manner regardless of incoming client context?

Thanx in advance,
AlexC


 
Old 11-25-2006   #2 (permalink)
Kurt Harriger
Guest
 
Posts: n/a

Re: Vista: Out-proc servers vs requireAdministrator

Don't mark the client as requiresAdministrator. Instead start the client
normally and move the requiresAdministrator functionality into another
process or com app. The client can then call the elevated process as
necessary and the client app which is running as the standard user should
start the other non-elevated process. If you start the application based on
the response of the elevated component it might be as simple as if
ElevatedComponent.DoSuchAndSuch() then start other process but if the
elevated process must initiate the request rather then the client you'll
need to establish a remoting channel or other form of IPC from the service
to the client, such as a WCF ServiceContract hosted by client application.
The client then becomes a service to the elevated process allowing the
elevated process to request the client application to start the non-elevated
process when necessary. As long as client application does not request
administrator priviliages it will not recieve them even if the user is
logged in as administrator.


- Kurt

"Alex Chmut" <AlexChmut"AT"MailShack"DOT"com> wrote in message
news:e2B3J$xDHHA.3524@TK2MSFTNGP06.phx.gbl...
> Hello everybody,
>
> By design, our product has a set of applications which have
> "requireAdministrator" in the manifest and a set of other which have
> "asInvoker".
> These applications use (when needed) a signle multi-use out-proc server
> which has "asInvoker" in the manifest and does not need to be run elevated
> (we even prohibit it from running elevated).
>
> The problem that we see is when a client app with "requireAdministrator"
> instantiates that out-proc server, the server's exe gets an an elevated
> instance. And there's previously running instance of server's executable
> with non-elevated context, now elevated clients cannot connect to that
> either, spawning a new elevated instance.
>
> How can we get our out-proc server be instantiated only in non-elevated
> multi-use manner regardless of incoming client context?
>
> Thanx in advance,
> AlexC
>
>


 
Old 11-27-2006   #3 (permalink)
Alex Chmut
Guest
 
Posts: n/a

Re: Vista: Out-proc servers vs requireAdministrator

Thanx, Kurt. It all makes sense. I'm just kind of disappointed with the
amount of work that needs to be done in order to have existing XP-compliant
apps to work properly under Vista.

AlexC


 
 
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print Servers w/ Vista Peddlerp Vista General 2 4 Weeks Ago 12:03 PM
repl mobo/proc - 0x7b error. Can't repair or reintsall TomaxBlade Vista installation & setup 4 02-11-2008 10:24 PM
Vista and Servers Doug V. Vista hardware & devices 1 07-20-2007 08:25 AM
Windows Experience Index goes down with more ram and faster proc. EG Vista performance & maintenance 2 03-12-2007 07:52 PM
Do Automatic Updates still use svchost? Please use a separate proc BillD Vista security 2 05-28-2006 05:25 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49