Author: spouliot
Date: 2005-04-05 18:44:39 -0400 (Tue, 05 Apr 2005)
New Revision: 42586

Modified:
   trunk/mcs/class/corlib/System.Security.Policy/ChangeLog
   trunk/mcs/class/corlib/System.Security.Policy/Hash.cs
Log:
2005-04-05  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * Hash.cs: Added Assert for FileIOPermission to GetData so it's 
        possible to get the Hash evidence under partial trust.



Modified: trunk/mcs/class/corlib/System.Security.Policy/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Security.Policy/ChangeLog     2005-04-05 
22:43:35 UTC (rev 42585)
+++ trunk/mcs/class/corlib/System.Security.Policy/ChangeLog     2005-04-05 
22:44:39 UTC (rev 42586)
@@ -1,3 +1,8 @@
+2005-04-05  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * Hash.cs: Added Assert for FileIOPermission to GetData so it's 
+       possible to get the Hash evidence under partial trust.
+
 2005-04-04  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * Evidence.cs: Build the default host evidences requires access to the

Modified: trunk/mcs/class/corlib/System.Security.Policy/Hash.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Policy/Hash.cs       2005-04-05 
22:43:35 UTC (rev 42585)
+++ trunk/mcs/class/corlib/System.Security.Policy/Hash.cs       2005-04-05 
22:44:39 UTC (rev 42586)
@@ -7,7 +7,7 @@
 //
 // (C) 2002 Jackson Harper, All rights reserved.
 // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.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
@@ -34,6 +34,7 @@
 using System.Reflection;
 using System.Runtime.Serialization;
 using System.Security.Cryptography;
+using System.Security.Permissions;
 
 namespace System.Security.Policy {
 
@@ -151,6 +152,8 @@
        // Private Methods
        //
 
+       // FIXME: be more restrictive when imperative security is implemented
+       [FileIOPermission (SecurityAction.Assert, Unrestricted = true)]
        private byte[] GetData () 
        {
 #if NET_2_0

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

Reply via email to