Author: spouliot
Date: 2005-03-24 14:59:39 -0500 (Thu, 24 Mar 2005)
New Revision: 42235

Modified:
   trunk/mcs/class/corlib/System.Reflection/ChangeLog
   trunk/mcs/class/corlib/System.Reflection/MemberInfo.cs
   trunk/mcs/class/corlib/System.Reflection/Module.cs
Log:
2005-03-24  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * MemberInfo.cs: Add an InheritanceDemand for Unrestricted on class.
        * Module.cs: Add a LinkDemand for SerializationFormatter on 
        GetObjectData method.



Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog  2005-03-24 19:41:54 UTC 
(rev 42234)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog  2005-03-24 19:59:39 UTC 
(rev 42235)
@@ -1,3 +1,9 @@
+2005-03-24  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * MemberInfo.cs: Add an InheritanceDemand for Unrestricted on class.
+       * Module.cs: Add a LinkDemand for SerializationFormatter on 
+       GetObjectData method.
+
 2005-03-16  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * Assembly.cs: Implemented EscapedCodeBase using the copy of 

Modified: trunk/mcs/class/corlib/System.Reflection/MemberInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/MemberInfo.cs      2005-03-24 
19:41:54 UTC (rev 42234)
+++ trunk/mcs/class/corlib/System.Reflection/MemberInfo.cs      2005-03-24 
19:59:39 UTC (rev 42235)
@@ -5,11 +5,8 @@
 //   Miguel de Icaza ([EMAIL PROTECTED])
 //
 // (C) Ximian, Inc.  http://www.ximian.com
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // "Software"), to deal in the Software without restriction, including
@@ -32,11 +29,13 @@
 
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
+using System.Security.Permissions;
 
 namespace System.Reflection {
 
        [Serializable]
        [ClassInterface(ClassInterfaceType.None)]
+       [PermissionSet (SecurityAction.InheritanceDemand, Unrestricted = true)]
        public abstract class MemberInfo : ICustomAttributeProvider {
 
                protected MemberInfo ()

Modified: trunk/mcs/class/corlib/System.Reflection/Module.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/Module.cs  2005-03-24 19:41:54 UTC 
(rev 42234)
+++ trunk/mcs/class/corlib/System.Reflection/Module.cs  2005-03-24 19:59:39 UTC 
(rev 42235)
@@ -5,11 +5,8 @@
 //   Paolo Molaro ([EMAIL PROTECTED])
 //
 // (C) 2001 Ximian, Inc.  http://www.ximian.com
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // "Software"), to deal in the Software without restriction, including
@@ -36,6 +33,7 @@
 using System.Security.Cryptography.X509Certificates;
 using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
+using System.Security.Permissions;
 
 namespace System.Reflection {
 
@@ -199,6 +197,7 @@
                }
 #endif
        
+               [SecurityPermission (SecurityAction.LinkDemand, 
SerializationFormatter = true)]
                public virtual void GetObjectData (SerializationInfo info, 
StreamingContext context) 
                {
                        UnitySerializationHolder.GetModuleData (this, info, 
context);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to