瀏覽代碼

2004-09-04 Sebastien Pouliot <[email protected]>

	* Thread.cs: Changed an imperative security demand to declarative
	(unsupported) so it doesn't (for now) call the security runtime.

svn path=/trunk/mcs/; revision=33355
Sebastien Pouliot 21 年之前
父節點
當前提交
610037a3ca
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 5 0
      mcs/class/corlib/System.Threading/ChangeLog
  2. 1 1
      mcs/class/corlib/System.Threading/Thread.cs

+ 5 - 0
mcs/class/corlib/System.Threading/ChangeLog

@@ -1,3 +1,8 @@
+2004-09-04  Sebastien Pouliot  <[email protected]>
+
+	* Thread.cs: Changed an imperative security demand to declarative
+	(unsupported) so it doesn't (for now) call the security runtime.
+
 2004-08-20  Sebastien Pouliot  <[email protected]>
 
 	* Thread.cs: Added Fx 2.0 properties/methods/attributes.

+ 1 - 1
mcs/class/corlib/System.Threading/Thread.cs

@@ -102,8 +102,8 @@ namespace System.Threading
 				}
 				return p;
 			}
+			[SecurityPermission (SecurityAction.Demand, Flags=SecurityPermissionFlag.ControlPolicy)]
 			set {
-				new SecurityPermission (SecurityPermissionFlag.ControlPrincipal).Demand ();
 				CurrentThread._principal = value;
 			}
 		}