Author: spouliot
Date: 2005-03-17 11:18:27 -0500 (Thu, 17 Mar 2005)
New Revision: 41949
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/security-manager.c
trunk/mono/mono/metadata/security-manager.h
Log:
2005-03-17 Sebastien Pouliot <[EMAIL PROTECTED]>
* security-manager.c|h: Added demandunmanaged method and
suppressunmanagedcodesecurity class to MonoSecurityManager.
Renamed aptc class to allowpartiallytrustedcallers.
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2005-03-17 14:55:42 UTC (rev 41948)
+++ trunk/mono/mono/metadata/ChangeLog 2005-03-17 16:18:27 UTC (rev 41949)
@@ -1,3 +1,9 @@
+2005-03-17 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * security-manager.c|h: Added demandunmanaged method and
+ suppressunmanagedcodesecurity class to MonoSecurityManager.
+ Renamed aptc class to allowpartiallytrustedcallers.
+
2005-03-17 Martin Baulig <[EMAIL PROTECTED]>
* class.c (inflate_generic_type): Add MONO_TYPE_ARRAY.
Modified: trunk/mono/mono/metadata/security-manager.c
===================================================================
--- trunk/mono/mono/metadata/security-manager.c 2005-03-17 14:55:42 UTC (rev
41948)
+++ trunk/mono/mono/metadata/security-manager.c 2005-03-17 16:18:27 UTC (rev
41949)
@@ -42,6 +42,10 @@
"InternalDemandChoice", 2);
g_assert (secman.demandchoice);
+ secman.demandunmanaged = mono_class_get_method_from_name
(secman.securitymanager,
+ "DemandUnmanaged", 0);
+ g_assert (secman.demandunmanaged);
+
secman.inheritancedemand = mono_class_get_method_from_name
(secman.securitymanager,
"InheritanceDemand", 2);
g_assert (secman.inheritancedemand);
@@ -66,10 +70,14 @@
"LinkDemandSecurityException", 3);
g_assert (secman.linkdemandsecurityexception);
- secman.aptc = mono_class_from_name (mono_defaults.corlib,
"System.Security",
+ secman.allowpartiallytrustedcallers = mono_class_from_name
(mono_defaults.corlib, "System.Security",
"AllowPartiallyTrustedCallersAttribute");
- g_assert (secman.aptc);
+ g_assert (secman.allowpartiallytrustedcallers);
+ secman.suppressunmanagedcodesecurity = mono_class_from_name
(mono_defaults.corlib, "System.Security",
+ "SuppressUnmanagedCodeSecurityAttribute");
+ g_assert (secman.suppressunmanagedcodesecurity);
+
return &secman;
}
Modified: trunk/mono/mono/metadata/security-manager.h
===================================================================
--- trunk/mono/mono/metadata/security-manager.h 2005-03-17 14:55:42 UTC (rev
41948)
+++ trunk/mono/mono/metadata/security-manager.h 2005-03-17 16:18:27 UTC (rev
41949)
@@ -39,13 +39,16 @@
MonoClass *securitymanager; /*
System.Security.SecurityManager */
MonoMethod *demand; /*
SecurityManager.InternalDemand */
MonoMethod *demandchoice; /*
SecurityManager.InternalDemandChoice */
+ MonoMethod *demandunmanaged; /*
SecurityManager.DemandUnmanaged */
MonoMethod *inheritancedemand; /*
SecurityManager.InheritanceDemand */
MonoMethod *inheritsecurityexception; /*
SecurityManager.InheritanceDemandSecurityException */
MonoMethod *linkdemand; /* SecurityManager.LinkDemand */
MonoMethod *linkdemandfulltrust; /*
SecurityManager.LinkDemandFullTrust */
MonoMethod *linkdemandunmanaged; /*
SecurityManager.LinkDemandUnmanaged */
MonoMethod *linkdemandsecurityexception;/*
SecurityManager.LinkDemandSecurityException */
- MonoClass *aptc; /*
System.Security.AllowPartiallyTrustedCallersAttribute */
+
+ MonoClass *allowpartiallytrustedcallers; /*
System.Security.AllowPartiallyTrustedCallersAttribute */
+ MonoClass *suppressunmanagedcodesecurity; /*
System.Security.SuppressUnmanagedCodeSecurityAttribute */
} MonoSecurityManager;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches