[Mono-dev] mono linker - mscorlib.dll

Miguel de Icaza miguel at novell.com
Fri Jan 7 12:07:04 EST 2011


>
> My application uses two different C# dlls and users can change/replace one
> of them. However, I don't want them to have file read/write access (ex. to
> write viruses...). I removed those functionality from mscorlib.dll using
> monolinker successfully, but the application crashes afterwards. I am not
> using Sytem.IO at all in my original dlls.
>

Mono uses this internally.

>
> Can monolinker be used this way? If so, what might possible be wrong?
> Unfortunately, I don't have any debug information since Visual Studio does
> not show where the program crashed.
>

You should not use the linker as a security system, it is not safe.

If you really must implement a security system, you might want to look at
using the CoreCLR Security subsystem used by Moonlight and Unity3D which is
part of Mono and familiarize yourself with CoreCLR security.   We do not
have many documents about it, so you will need to look at the source code of
Moonlight to figure it out.

Miguel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110107/57d4f6b0/attachment.html 


More information about the Mono-devel-list mailing list