[Mono-devel-list] CAS patch for LinkDemand

Sebastien Pouliot sebastien at ximian.com
Tue Feb 8 10:00:57 EST 2005


This patch adds LinkDemand (and NonCasLinkDemand) support to Mono,
including the special link cases for internal calls (ECMA), p/invoke and
partially trusted code calling fully trusted code.

The only known problem is that the SecurityException throw in mini are
currently unhandled.

Also included is a patch to /mcs/class/corlib/System.Reflection/
MonoMethod.cs to allow the ECMA check to work when reflection is being
used to call an internal call. The SecurityManager part is already in

I added some tests in /mono/mono/test/cas/linkdemand. There is a README
file that details each case.

Sebastien Pouliot  <sebastien at ximian.com>
blog: http://pages.infinit.net/ctech/poupou.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MonoMethod.diff
Type: text/x-patch
Size: 1927 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050208/1b8099f4/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono.20050208.diff
Type: text/x-patch
Size: 30018 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050208/1b8099f4/attachment-0001.bin 

More information about the Mono-devel-list mailing list