Z
Z
zebraxxl2011-05-18 21:55:08
Google Workspace
zebraxxl, 2011-05-18 21:55:08

Sandboxing with .NET 2.0?

There is such a task - to execute the code of some unreliable assembly with very limited rights: it is only allowed to execute and call methods from another, obviously reliable, assembly with maximum rights. Actually did as it is written here: www.rsdn.ru/article/dotnet/NET4Security.xml but for some reason it didn't start: the unreliable assembly code calmly called the method marked [SecurityCritical]. True, she still failed to call a dangerous code. The code:

  • pastebin.com/AyfDm6mh - the code of the main module that starts the unreliable assembly
  • pastebin.com/Bxcm4PAr - reliable assembly code - an interlayer that can be caused by an unreliable assembly
  • pastebin.com/wj69bSsJ - unreliable assembly code

Actually, the question is why it doesn’t work, or where you can read about the implementation of the sandbox in .NET 2.0 (well, or maximum 3.0) / Mono - I searched but did not find it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
khaale, 2011-05-18
@zebraxxl

http://msdn.microsoft.com/en-us/library/ms229913.aspx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question