开发者

How to run an exe with restricted permissions?

I am developing ,with C#, a server application that compiles and runs the code of clients and i need to know if there is a way to run a exe in a process with restricted permissions(because the server can't trust client code). The only permission that the file must have is to execute, all other permissions开发者_如何学运维 must be denied(I/O operations, access to internet, modify the registry, etc).


You may take a look at the following article on MSDN which illustrates how a separate AppDomain could be created. And to even further increase the isolation between your server code and the client code this AppDomain could be created inside a separate process.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜