Quellcode durchsuchen

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.


svn path=/trunk/mcs/; revision=42235
Sebastien Pouliot vor 21 Jahren
Ursprung
Commit
ff3b2c0bb3

+ 6 - 0
mcs/class/corlib/System.Reflection/ChangeLog

@@ -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 

+ 3 - 4
mcs/class/corlib/System.Reflection/MemberInfo.cs

@@ -5,10 +5,7 @@
 //   Miguel de Icaza ([email protected])
 //
 // (C) Ximian, Inc.  http://www.ximian.com
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 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
@@ -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 ()

+ 3 - 4
mcs/class/corlib/System.Reflection/Module.cs

@@ -5,10 +5,7 @@
 //   Paolo Molaro ([email protected])
 //
 // (C) 2001 Ximian, Inc.  http://www.ximian.com
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2005 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
@@ -36,6 +33,7 @@ using System.Runtime.Serialization;
 using System.Security.Cryptography.X509Certificates;
 using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
+using System.Security.Permissions;
 
 namespace System.Reflection {
 
@@ -199,6 +197,7 @@ namespace System.Reflection {
 		}
 #endif
 	
+		[SecurityPermission (SecurityAction.LinkDemand, SerializationFormatter = true)]
 		public virtual void GetObjectData (SerializationInfo info, StreamingContext context) 
 		{
 			UnitySerializationHolder.GetModuleData (this, info, context);