Remove more CAS (dotnet/coreclr#9390)
authorDan Moseley <danmose@microsoft.com>
Tue, 7 Feb 2017 22:10:09 +0000 (14:10 -0800)
committerGitHub <noreply@github.com>
Tue, 7 Feb 2017 22:10:09 +0000 (14:10 -0800)
* Remove PermissionSet

* Remove HostProtectionAttribute

* Remove PermissionState

* Remove S.Security.Permissions

* Remove IPrincipal

* Fix native side

* Remove model.xml again

Commit migrated from https://github.com/dotnet/coreclr/commit/c35e8dbc37e5380f46553510d0368aad04a677d2

192 files changed:
src/coreclr/src/mscorlib/Common/PinnableBufferCache.cs
src/coreclr/src/mscorlib/src/CleanupToDoList.cs
src/coreclr/src/mscorlib/src/Internal/Runtime/Augments/RuntimeThread.cs
src/coreclr/src/mscorlib/src/Microsoft/Win32/RegistryKey.cs
src/coreclr/src/mscorlib/src/Microsoft/Win32/SafeHandles/SafeFindHandle.cs
src/coreclr/src/mscorlib/src/Microsoft/Win32/SafeHandles/SafeLibraryHandle.cs
src/coreclr/src/mscorlib/src/Microsoft/Win32/SafeHandles/SafeRegistryHandle.cs
src/coreclr/src/mscorlib/src/Microsoft/Win32/SafeHandles/SafeWaitHandle.cs
src/coreclr/src/mscorlib/src/Microsoft/Win32/SafeHandles/Win32SafeHandles.cs
src/coreclr/src/mscorlib/src/Microsoft/Win32/UnsafeNativeMethods.cs
src/coreclr/src/mscorlib/src/System/Activator.cs
src/coreclr/src/mscorlib/src/System/AppDomain.cs
src/coreclr/src/mscorlib/src/System/ArgumentOutOfRangeException.cs
src/coreclr/src/mscorlib/src/System/Array.cs
src/coreclr/src/mscorlib/src/System/Attribute.cs
src/coreclr/src/mscorlib/src/System/BCLDebug.cs
src/coreclr/src/mscorlib/src/System/BadImageFormatException.cs
src/coreclr/src/mscorlib/src/System/Collections/ArrayList.cs
src/coreclr/src/mscorlib/src/System/Collections/Comparer.cs
src/coreclr/src/mscorlib/src/System/Collections/Concurrent/ConcurrentDictionary.cs
src/coreclr/src/mscorlib/src/System/Collections/Concurrent/ConcurrentStack.cs
src/coreclr/src/mscorlib/src/System/Collections/Generic/DebugView.cs
src/coreclr/src/mscorlib/src/System/Collections/Generic/Dictionary.cs
src/coreclr/src/mscorlib/src/System/Collections/Generic/List.cs
src/coreclr/src/mscorlib/src/System/Collections/Hashtable.cs
src/coreclr/src/mscorlib/src/System/DBNull.cs
src/coreclr/src/mscorlib/src/System/DateTime.cs
src/coreclr/src/mscorlib/src/System/DateTimeOffset.cs
src/coreclr/src/mscorlib/src/System/DelegateSerializationHolder.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Assert.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Contracts/Contracts.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Contracts/ContractsBCL.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Debugger.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Eventing/EventDescriptor.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Eventing/EventProvider.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Eventing/EventSource.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Eventing/StubEnvironment.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Stackframe.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/Stacktrace.cs
src/coreclr/src/mscorlib/src/System/Diagnostics/log.cs
src/coreclr/src/mscorlib/src/System/Environment.cs
src/coreclr/src/mscorlib/src/System/Exception.cs
src/coreclr/src/mscorlib/src/System/GC.cs
src/coreclr/src/mscorlib/src/System/Globalization/CompareInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/CultureInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/DateTimeFormatInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs
src/coreclr/src/mscorlib/src/System/Globalization/JapaneseCalendar.cs
src/coreclr/src/mscorlib/src/System/Globalization/NumberFormatInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/StringInfo.cs
src/coreclr/src/mscorlib/src/System/Globalization/TextInfo.cs
src/coreclr/src/mscorlib/src/System/IO/Directory.cs
src/coreclr/src/mscorlib/src/System/IO/File.cs
src/coreclr/src/mscorlib/src/System/IO/FileLoadException.cs
src/coreclr/src/mscorlib/src/System/IO/FileNotFoundException.cs
src/coreclr/src/mscorlib/src/System/IO/MemoryStream.cs
src/coreclr/src/mscorlib/src/System/IO/Stream.cs
src/coreclr/src/mscorlib/src/System/IO/StreamReader.cs
src/coreclr/src/mscorlib/src/System/IO/TextReader.cs
src/coreclr/src/mscorlib/src/System/IO/UnmanagedMemoryAccessor.cs
src/coreclr/src/mscorlib/src/System/IO/UnmanagedMemoryStream.cs
src/coreclr/src/mscorlib/src/System/IO/UnmanagedMemoryStreamWrapper.cs
src/coreclr/src/mscorlib/src/System/IO/__Error.cs
src/coreclr/src/mscorlib/src/System/Lazy.cs
src/coreclr/src/mscorlib/src/System/MissingMemberException.cs
src/coreclr/src/mscorlib/src/System/OperatingSystem.cs
src/coreclr/src/mscorlib/src/System/Reflection/Assembly.cs
src/coreclr/src/mscorlib/src/System/Reflection/AssemblyName.cs
src/coreclr/src/mscorlib/src/System/Reflection/ConstructorInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/CustomAttribute.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/AssemblyBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/AssemblyBuilderData.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/ConstructorBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/CustomAttributeBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/DynamicILGenerator.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/DynamicMethod.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/EnumBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/EventBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/EventToken.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/FieldBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/FieldToken.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/ILGenerator.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/Label.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/LocalBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/MethodBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/MethodToken.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/ModuleBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/OpCodes.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/Opcode.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/ParameterBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/ParameterToken.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/PropertyBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/PropertyToken.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/SignatureHelper.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/SignatureToken.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/StringToken.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/TypeBuilder.cs
src/coreclr/src/mscorlib/src/System/Reflection/Emit/TypeToken.cs
src/coreclr/src/mscorlib/src/System/Reflection/EventInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/FieldInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/MdImport.cs
src/coreclr/src/mscorlib/src/System/Reflection/MemberInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/MethodBase.cs
src/coreclr/src/mscorlib/src/System/Reflection/MethodInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/Missing.cs
src/coreclr/src/mscorlib/src/System/Reflection/Module.cs
src/coreclr/src/mscorlib/src/System/Reflection/ParameterInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/PropertyInfo.cs
src/coreclr/src/mscorlib/src/System/Reflection/ReflectionTypeLoadException.cs
src/coreclr/src/mscorlib/src/System/Reflection/StrongNameKeyPair.cs
src/coreclr/src/mscorlib/src/System/Resources/ResourceManager.cs
src/coreclr/src/mscorlib/src/System/Resources/ResourceReader.cs
src/coreclr/src/mscorlib/src/System/Resources/ResourceSet.cs
src/coreclr/src/mscorlib/src/System/RtType.cs
src/coreclr/src/mscorlib/src/System/Runtime/CompilerServices/AsyncMethodBuilder.cs
src/coreclr/src/mscorlib/src/System/Runtime/CompilerServices/RuntimeHelpers.cs
src/coreclr/src/mscorlib/src/System/Runtime/CompilerServices/RuntimeWrappedException.cs
src/coreclr/src/mscorlib/src/System/Runtime/CompilerServices/TaskAwaiter.cs
src/coreclr/src/mscorlib/src/System/Runtime/CompilerServices/YieldAwaitable.cs
src/coreclr/src/mscorlib/src/System/Runtime/GcSettings.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/BStrWrapper.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/CriticalHandle.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/DispatchWrapper.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/ErrorWrapper.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/GcHandle.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/IException.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/RuntimeEnvironment.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/SafeBuffer.cs
src/coreclr/src/mscorlib/src/System/Runtime/InteropServices/SafeHandle.cs
src/coreclr/src/mscorlib/src/System/Runtime/MemoryFailPoint.cs
src/coreclr/src/mscorlib/src/System/Runtime/Reliability/CriticalFinalizerObject.cs
src/coreclr/src/mscorlib/src/System/Runtime/Serialization/FormatterServices.cs
src/coreclr/src/mscorlib/src/System/Runtime/Serialization/IObjectReference.cs
src/coreclr/src/mscorlib/src/System/Runtime/Serialization/ISerializable.cs
src/coreclr/src/mscorlib/src/System/RuntimeHandles.cs
src/coreclr/src/mscorlib/src/System/Security/SecurityException.cs
src/coreclr/src/mscorlib/src/System/Security/SecurityState.cs
src/coreclr/src/mscorlib/src/System/Text/ASCIIEncoding.cs
src/coreclr/src/mscorlib/src/System/Text/DecoderNLS.cs
src/coreclr/src/mscorlib/src/System/Text/EncoderNLS.cs
src/coreclr/src/mscorlib/src/System/Text/Encoding.cs
src/coreclr/src/mscorlib/src/System/Text/Latin1Encoding.cs
src/coreclr/src/mscorlib/src/System/Text/UTF7Encoding.cs
src/coreclr/src/mscorlib/src/System/Text/UTF8Encoding.cs
src/coreclr/src/mscorlib/src/System/Text/UnicodeEncoding.cs
src/coreclr/src/mscorlib/src/System/Threading/AutoResetEvent.cs
src/coreclr/src/mscorlib/src/System/Threading/CancellationToken.cs
src/coreclr/src/mscorlib/src/System/Threading/CancellationTokenRegistration.cs
src/coreclr/src/mscorlib/src/System/Threading/CancellationTokenSource.cs
src/coreclr/src/mscorlib/src/System/Threading/CountdownEvent.cs
src/coreclr/src/mscorlib/src/System/Threading/EventWaitHandle.cs
src/coreclr/src/mscorlib/src/System/Threading/ExecutionContext.cs
src/coreclr/src/mscorlib/src/System/Threading/Interlocked.cs
src/coreclr/src/mscorlib/src/System/Threading/LazyInitializer.cs
src/coreclr/src/mscorlib/src/System/Threading/ManualResetEvent.cs
src/coreclr/src/mscorlib/src/System/Threading/ManualResetEventSlim.cs
src/coreclr/src/mscorlib/src/System/Threading/Monitor.cs
src/coreclr/src/mscorlib/src/System/Threading/Mutex.cs
src/coreclr/src/mscorlib/src/System/Threading/Overlapped.cs
src/coreclr/src/mscorlib/src/System/Threading/ParameterizedThreadStart.cs
src/coreclr/src/mscorlib/src/System/Threading/SemaphoreSlim.cs
src/coreclr/src/mscorlib/src/System/Threading/SpinWait.cs
src/coreclr/src/mscorlib/src/System/Threading/SynchronizationContext.cs
src/coreclr/src/mscorlib/src/System/Threading/Tasks/ConcurrentExclusiveSchedulerPair.cs
src/coreclr/src/mscorlib/src/System/Threading/Tasks/FutureFactory.cs
src/coreclr/src/mscorlib/src/System/Threading/Tasks/TPLETWProvider.cs
src/coreclr/src/mscorlib/src/System/Threading/Tasks/Task.cs
src/coreclr/src/mscorlib/src/System/Threading/Tasks/TaskCompletionSource.cs
src/coreclr/src/mscorlib/src/System/Threading/Tasks/TaskFactory.cs
src/coreclr/src/mscorlib/src/System/Threading/Tasks/TaskScheduler.cs
src/coreclr/src/mscorlib/src/System/Threading/Tasks/future.cs
src/coreclr/src/mscorlib/src/System/Threading/Thread.cs
src/coreclr/src/mscorlib/src/System/Threading/ThreadLocal.cs
src/coreclr/src/mscorlib/src/System/Threading/ThreadPool.cs
src/coreclr/src/mscorlib/src/System/Threading/ThreadStart.cs
src/coreclr/src/mscorlib/src/System/Threading/Timer.cs
src/coreclr/src/mscorlib/src/System/Threading/WaitHandle.cs
src/coreclr/src/mscorlib/src/System/Type.cs
src/coreclr/src/mscorlib/src/System/TypeLoadException.cs
src/coreclr/src/mscorlib/src/System/TypedReference.cs
src/coreclr/src/mscorlib/src/System/WeakReference.cs
src/coreclr/src/mscorlib/src/System/__ComObject.cs
src/coreclr/src/vm/appdomainnative.cpp
src/coreclr/src/vm/appdomainnative.hpp
src/coreclr/src/vm/assembly.cpp
src/coreclr/src/vm/assembly.hpp
src/coreclr/src/vm/comsynchronizable.cpp
src/coreclr/src/vm/comsynchronizable.h
src/coreclr/src/vm/security.h
src/coreclr/src/vm/securitydescriptorassembly.cpp
src/coreclr/src/vm/securitydescriptorassembly.h

index 60c1642..6c85a5a 100644 (file)
@@ -11,7 +11,6 @@ using System.Collections.Concurrent;
 using System.Threading;
 using System.Runtime.CompilerServices;
 using System.Diagnostics;
-using System.Security.Permissions;
 
 #if PINNABLEBUFFERCACHE_MSCORLIB
 namespace System.Threading
index fe7e814..f07d23f 100644 (file)
@@ -13,24 +13,6 @@ namespace System.Security
         CurrentAppDomain = 0,
         CurrentAssembly
     }
-
-    internal sealed class PermissionSet
-    {
-    }
-}
-
-namespace System.Security.Permissions
-{
-    internal class HostProtectionAttribute : Attribute
-    {
-        public bool MayLeakOnAbort { get; set; }
-    }
-
-    internal enum PermissionState
-    {
-        Unrestricted = 1,
-        None = 0,
-    }
 }
 
 namespace System.Security.Policy
@@ -43,10 +25,3 @@ namespace System.Security.Policy
     {
     }
 }
-
-namespace System.Security.Principal
-{
-    internal interface IPrincipal
-    {
-    }
-}
index 4846205..52d0e34 100644 (file)
@@ -9,7 +9,6 @@ using System.Runtime.CompilerServices;
 using System.Runtime.ConstrainedExecution;
 using System.Runtime.InteropServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Threading;
 
 namespace Internal.Runtime.Augments
index 839c2ff..f82b276 100644 (file)
@@ -55,7 +55,6 @@ namespace Microsoft.Win32
     using System.Collections;
     using System.Collections.Generic;
     using System.Security;
-    using System.Security.Permissions;
     using System.Text;
     using System.Threading;
     using System.IO;
index 219fb77..89ea22b 100644 (file)
@@ -13,7 +13,6 @@
 
 using System;
 using System.Security;
-using System.Security.Permissions;
 using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
 using System.Runtime.ConstrainedExecution;
index 2363198..603558c 100644 (file)
@@ -4,7 +4,6 @@
 
 namespace Microsoft.Win32 {
     using Microsoft.Win32.SafeHandles;
-    using System.Security.Permissions;
 
     sealed internal class SafeLibraryHandle : SafeHandleZeroOrMinusOneIsInvalid {
         internal SafeLibraryHandle() : base(true) {}
index ad89188..6bf65b0 100644 (file)
@@ -11,7 +11,6 @@
 namespace Microsoft.Win32.SafeHandles {
     using System;
     using System.Security;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Runtime.CompilerServices;
     using System.Runtime.ConstrainedExecution;
index 0e57136..caacc69 100644 (file)
@@ -14,7 +14,6 @@
 
 using System;
 using System.Security;
-using System.Security.Permissions;
 using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
 using System.Runtime.ConstrainedExecution;
index 08ae095..3d9a9fa 100644 (file)
@@ -18,7 +18,6 @@ namespace Microsoft.Win32.SafeHandles
     using System;
     using System.Runtime.InteropServices;
     using System.Runtime.CompilerServices;
-    using System.Security.Permissions;
     using System.Runtime.ConstrainedExecution;
 
     // Class of safe handle which uses 0 or -1 as an invalid handle.
index a9b0708..a86f790 100644 (file)
@@ -12,7 +12,6 @@ namespace Microsoft.Win32 {
     using System.Runtime.Serialization;
     using System.Runtime.Versioning;
     using System.Security;
-    using System.Security.Permissions;
     using System.Text;
     using System.Diagnostics.Tracing;
 
index c6cfb16..323fbba 100644 (file)
@@ -22,7 +22,6 @@ namespace System {
     using StackCrawlMark = System.Threading.StackCrawlMark;
     using System.Runtime.InteropServices;
     using System.Runtime.CompilerServices;
-    using System.Security.Permissions;
     using AssemblyHashAlgorithm = System.Configuration.Assemblies.AssemblyHashAlgorithm;
     using System.Runtime.Versioning;
     using System.Diagnostics.Contracts;
index 51f4ae0..e3d2b4b 100644 (file)
@@ -20,7 +20,6 @@ namespace System
     using System.Runtime;
     using System.Runtime.CompilerServices;
     using System.Security;
-    using System.Security.Permissions;
     using System.Security.Policy;
     using System.Collections;
     using System.Collections.Generic;
index 13580e9..59a8434 100644 (file)
@@ -17,7 +17,6 @@ namespace System {
     using System.Runtime.Remoting;
     using System.Runtime.Serialization;
     using System.Globalization;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
         
     // The ArgumentOutOfRangeException is thrown when an argument 
index d1ce116..8694b5a 100644 (file)
@@ -20,7 +20,6 @@ namespace System {
     using System.Runtime.Versioning;
     using System.Security;
     using System.Diagnostics;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
 
     // Note that we make a T[] (single-dimensional w/ zero as the lower bound) implement both 
index 796608a..b44e13f 100644 (file)
@@ -13,7 +13,6 @@ namespace System {
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
     using System.Security;
-    using System.Security.Permissions;
 
     [Serializable]
     [AttributeUsageAttribute(AttributeTargets.All, Inherited = true, AllowMultiple=false)] 
index e700f55..7556b85 100644 (file)
@@ -20,7 +20,6 @@ namespace System {
     using Microsoft.Win32;
     using System.Runtime.CompilerServices;
     using System.Runtime.Versioning;
-    using System.Security.Permissions;
     using System.Security;
     using System.Diagnostics.Contracts;
 
index e6332b6..51a6c40 100644 (file)
@@ -16,7 +16,6 @@ namespace System {
     using System;
     using System.Runtime.Serialization;
     using FileLoadException = System.IO.FileLoadException;
-    using System.Security.Permissions;
     using SecurityException = System.Security.SecurityException;
     using System.Globalization;
 
index 3eb0160..53746e2 100644 (file)
@@ -18,7 +18,6 @@ namespace System.Collections {
     using System;
     using System.Runtime;
     using System.Security;
-    using System.Security.Permissions;
     using System.Diagnostics;
     using System.Runtime.CompilerServices;
     using System.Runtime.Serialization;
index 7d4a3db..928b0f9 100644 (file)
@@ -17,7 +17,6 @@ namespace System.Collections {
     using System;
     using System.Globalization;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
 
     [Serializable]
index e750148..8b9014a 100644 (file)
@@ -24,7 +24,6 @@ using System.Runtime.Serialization;
 using System.Text;
 using System.Threading;
 using System.Security;
-using System.Security.Permissions;
 
 namespace System.Collections.Concurrent
 {
index d0a93e5..10a5201 100644 (file)
@@ -20,7 +20,6 @@ using System.Diagnostics.Contracts;
 using System.Runtime.ConstrainedExecution;
 using System.Runtime.Serialization;
 using System.Security;
-using System.Security.Permissions;
 using System.Threading;
 
 namespace System.Collections.Concurrent
index d0711e5..27c5011 100644 (file)
@@ -16,7 +16,6 @@
 namespace System.Collections.Generic {
     using System;
     using System.Collections.ObjectModel;
-    using System.Security.Permissions;
     using System.Diagnostics;    
     using System.Diagnostics.Contracts;
 
index c3970e6..7b60e31 100644 (file)
@@ -48,7 +48,6 @@ namespace System.Collections.Generic {
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
 
     [DebuggerTypeProxy(typeof(Mscorlib_DictionaryDebugView<,>))]
     [DebuggerDisplay("Count = {Count}")]
index 17d6e62..362e265 100644 (file)
@@ -20,7 +20,6 @@ namespace System.Collections.Generic {
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
     using System.Collections.ObjectModel;
-    using System.Security.Permissions;
 
     // Implements a variable-size List that uses an array of objects to store the
     // elements. A List has a capacity, which is the allocated length
index baf59f4..3447b99 100644 (file)
@@ -17,7 +17,6 @@ namespace System.Collections {
     using System;
     using System.Runtime;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Diagnostics;
     using System.Threading; 
     using System.Runtime.CompilerServices;
index bc04b17..65c85ba 100644 (file)
@@ -11,7 +11,6 @@ namespace System {
     using System;
     using System.Runtime.Remoting;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     [Serializable]
     public sealed class DBNull : ISerializable, IConvertible {
     
index 1d46183..3de5033 100644 (file)
@@ -13,7 +13,6 @@ namespace System {
     using System.Runtime.Serialization;
     using System.Runtime.Versioning;
     using System.Security;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
     using CultureInfo = System.Globalization.CultureInfo;
     using Calendar = System.Globalization.Calendar;
index 5bdaa18..d64ba15 100644 (file)
@@ -10,7 +10,6 @@ namespace System {
     using System.Runtime.InteropServices;
     using System.Runtime.CompilerServices;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
 
index b48910b..061f92d 100644 (file)
@@ -7,7 +7,6 @@ using System;
 using System.Reflection;
 using System.Runtime.Remoting;
 using System.Runtime.Serialization;
-using System.Security.Permissions;
 using System.Globalization;
 using System.Diagnostics.Contracts;
 
index 75572d7..9f4b86b 100644 (file)
@@ -4,7 +4,6 @@
 
 namespace System.Diagnostics {
     using System;
-    using System.Security.Permissions;
     using System.IO;
     using System.Reflection;
     using System.Runtime.CompilerServices;
index e44f936..7fa3e73 100644 (file)
@@ -41,7 +41,6 @@ using System.Runtime.ConstrainedExecution;
 #endif
 #if FEATURE_UNTRUSTED_CALLERS
 using System.Security;
-using System.Security.Permissions;
 #endif
 
 namespace System.Diagnostics.Contracts {
index fe574b9..4adf742 100644 (file)
@@ -35,7 +35,6 @@ using System.Runtime.ConstrainedExecution;
 #endif
 #if FEATURE_UNTRUSTED_CALLERS
 using System.Security;
-using System.Security.Permissions;
 #endif
 
 namespace System.Diagnostics.Contracts {
index 9be87d1..21c57db 100644 (file)
@@ -13,7 +13,6 @@ namespace System.Diagnostics
     using System.Reflection;
     using System.Runtime.CompilerServices;
     using System.Security;
-    using System.Security.Permissions;
     using System.Runtime.Versioning;
 
     // No data, does not need to be marked with the serializable attribute
index 11b6e6b..116b50f 100644 (file)
@@ -22,7 +22,9 @@ namespace System.Diagnostics.Tracing
 #endif
 {
     [StructLayout(LayoutKind.Explicit, Size = 16)]
+#if !CORECLR    
     [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
+#endif // CORECLR    
     internal struct EventDescriptor
     {
         # region private
index af8d9cf..1fc18a8 100644 (file)
@@ -8,7 +8,6 @@ using System.Diagnostics.CodeAnalysis;
 using System.Globalization;
 using System.Runtime.InteropServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Threading;
 using System;
 
@@ -43,7 +42,9 @@ namespace System.Diagnostics.Tracing
     /// Only here because System.Diagnostics.EventProvider needs one more extensibility hook (when it gets a 
     /// controller callback)
     /// </summary>
+#if !CORECLR    
     [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)]
+#endif // CORECLR
     internal partial class EventProvider : IDisposable
     {
         // This is the windows EVENT_DATA_DESCRIPTOR structure.  We expose it because this is what
index dcf14d4..ff1a210 100644 (file)
@@ -187,7 +187,6 @@ using System.Globalization;
 using System.Reflection;
 using System.Resources;
 using System.Security;
-using System.Security.Permissions;
 
 using System.Text;
 using System.Threading;
@@ -3047,7 +3046,7 @@ namespace System.Diagnostics.Tracing
             }
             if (s_currentPid == 0)
             {
-#if ES_BUILD_STANDALONE && !ES_BUILD_PCL
+#if ES_BUILD_STANDALONE && !ES_BUILD_PCL && !CORECLR
                 // for non-BCL EventSource we must assert SecurityPermission
                 new SecurityPermission(PermissionState.Unrestricted).Assert();
 #endif
index e090c4f..c439973 100644 (file)
@@ -350,7 +350,6 @@ namespace System.Security
 }
 namespace System.Security.Permissions
 {
-    class HostProtectionAttribute : Attribute { public bool MayLeakOnAbort { get; set; } }
     class PermissionSetAttribute : Attribute
     { 
         public PermissionSetAttribute(System.Security.SecurityAction action) { }
index 10b382f..13d8f5c 100644 (file)
@@ -8,7 +8,6 @@ namespace System.Diagnostics {
     using System;
     using System.IO;
     using System.Reflection;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
 
     // There is no good reason for the methods of this class to be virtual.
index f00f466..cd88f51 100644 (file)
@@ -8,7 +8,6 @@ namespace System.Diagnostics {
     using System.Text;
     using System.Threading;
     using System.Security;
-    using System.Security.Permissions;
     using System.IO;
     using System.Reflection;
     using System.Runtime.InteropServices;
index 3a72370..d297b8f 100644 (file)
@@ -5,7 +5,6 @@
 namespace System.Diagnostics {
     using System.Runtime.Remoting;
     using System;
-    using System.Security.Permissions;
     using System.IO;
     using System.Collections;
     using System.Runtime.CompilerServices;
index d082f21..26346c5 100644 (file)
@@ -18,7 +18,6 @@ namespace System {
     using System.Globalization;
     using System.Collections;
     using System.Collections.Generic;
-    using System.Security.Permissions;
     using System.Text;
     using System.Configuration.Assemblies;
     using System.Runtime.InteropServices;
index 231469e..a166c1a 100644 (file)
@@ -18,7 +18,6 @@ namespace System {
     using System.Runtime.Serialization;
     using System.Runtime.Versioning;
     using System.Diagnostics;
-    using System.Security.Permissions;
     using System.Security;
     using System.IO;
     using System.Text;
index 81fd98c..225fefd 100644 (file)
@@ -16,7 +16,6 @@ namespace System {
     //This class only static members and doesn't require the serializable keyword.
 
     using System;
-    using System.Security.Permissions;
     using System.Reflection;
     using System.Security;
     using System.Threading;
index 2ff830b..6c2230b 100644 (file)
@@ -29,7 +29,6 @@ namespace System.Globalization {
     using System.Runtime.InteropServices;
     using System.Runtime.Versioning;
     using System.Threading;
-    using System.Security.Permissions;
     using Microsoft.Win32;
     using System.Security;
     using System.Diagnostics;
index 41356c5..ba61c14 100644 (file)
@@ -36,7 +36,6 @@ namespace System.Globalization {
     using System.Runtime.InteropServices;
     using System.Runtime.Serialization;
     using System.Runtime.Versioning;
-    using System.Security.Permissions;
     using System.Reflection;
     using Microsoft.Win32;
     using System.Diagnostics;
index e615dc3..b2374ef 100644 (file)
@@ -10,7 +10,6 @@ namespace System.Globalization {
     using System.Collections;
     using System.Collections.Generic;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Runtime.Versioning;
     using System.Text;
index 0810d67..e203223 100644 (file)
@@ -10,7 +10,6 @@ namespace System.Globalization {
     using System.Collections.Generic;
     using System.Threading;
     using System.Security;
-    using System.Security.Permissions;
     using System.Runtime.CompilerServices;
     using System.Runtime.ConstrainedExecution;
     using System.Runtime.Versioning;
index 18677a9..72331f8 100644 (file)
@@ -8,8 +8,6 @@ namespace System.Globalization {
     using System.Diagnostics.CodeAnalysis;
     using System.Diagnostics.Contracts;
     using Microsoft.Win32;
-    using PermissionSet = System.Security.PermissionSet;
-    using System.Security.Permissions;
 
     /*=================================JapaneseCalendar==========================
     **
index bfd51e6..d95aac3 100644 (file)
@@ -3,7 +3,6 @@
 // See the LICENSE file in the project root for more information.
 
 namespace System.Globalization {
-    using System.Security.Permissions;
     using System.Runtime.Serialization;
     using System.Text;
     using System;
index b79657b..dc32fe9 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Globalization {
   
     using System;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
 
index 2db5eff..9ece275 100644 (file)
@@ -23,7 +23,6 @@ namespace System.Globalization {
     using System.Runtime.CompilerServices;
     using System.Runtime.Serialization;
     using System.Runtime.Versioning;
-    using System.Security.Permissions;
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
 
index dcdc850..88a669a 100644 (file)
@@ -17,7 +17,6 @@
 
 using System.Collections.Generic;
 using System.Security;
-using System.Security.Permissions;
 using Microsoft.Win32;
 using Microsoft.Win32.SafeHandles;
 using System.Runtime.InteropServices;
index 7c2266a..7cc3f43 100644 (file)
@@ -14,7 +14,6 @@
 **
 ===========================================================*/
 
-using System.Security.Permissions;
 using Win32Native = Microsoft.Win32.Win32Native;
 using System.Runtime.InteropServices;
 using System.Security;
index 7bbc1a3..980d251 100644 (file)
@@ -20,7 +20,6 @@ using System.Runtime.Serialization;
 using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Runtime.Versioning;
 using SecurityException = System.Security.SecurityException;
 
index 2353176..ad6b538 100644 (file)
@@ -16,7 +16,6 @@
 
 using System;
 using System.Runtime.Serialization;
-using System.Security.Permissions;
 using SecurityException = System.Security.SecurityException;
 using System.Globalization;
 
index afdb21f..05aac90 100644 (file)
@@ -23,7 +23,6 @@ using System.Diagnostics;
 using System.Diagnostics.Contracts;
 using System.Threading;
 using System.Threading.Tasks;
-using System.Security.Permissions;
 
 namespace System.IO {
     // A MemoryStream represents a Stream in memory (ie, it has no backing store).
index 63c6131..790f0a0 100644 (file)
@@ -23,7 +23,6 @@ using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
 using System.Runtime.ExceptionServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
 using System.Reflection;
index 8e69196..6d50347 100644 (file)
@@ -8,7 +8,6 @@ using System.Runtime.Versioning;
 using System.Diagnostics;
 using System.Diagnostics.CodeAnalysis;
 using System.Diagnostics.Contracts;
-using System.Security.Permissions;
 using System.Threading.Tasks;
 
 namespace System.IO
index 0caa6af..15ba8fb 100644 (file)
@@ -17,7 +17,6 @@
 using System.Text;
 using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
-using System.Security.Permissions;
 using System.Diagnostics.CodeAnalysis;
 using System.Diagnostics.Contracts;
 using System.Threading;
index 4208ebf..f3fd718 100644 (file)
@@ -17,7 +17,6 @@ using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
 using System.Runtime.ConstrainedExecution;
 using System.Runtime.Versioning;
-using System.Security.Permissions;
 using Microsoft.Win32.SafeHandles;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
index e69a40b..165b6d2 100644 (file)
@@ -17,7 +17,6 @@ using System.Runtime;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Threading;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
index 040ddbb..99b257e 100644 (file)
@@ -13,7 +13,6 @@
 
 using System;
 using System.Runtime.InteropServices;
-using System.Security.Permissions;
 using System.Diagnostics.CodeAnalysis;
 using System.Diagnostics.Contracts;
 using System.Threading;
index 73d90a5..955ddbe 100644 (file)
@@ -21,7 +21,6 @@ using Win32Native = Microsoft.Win32.Win32Native;
 using System.Text;
 using System.Globalization;
 using System.Security;
-using System.Security.Permissions;
 using System.Diagnostics.Contracts;
 
 namespace System.IO {
index d9c8ca3..0ddd6da 100644 (file)
@@ -18,7 +18,6 @@
 using System.Runtime;
 using System.Runtime.InteropServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Diagnostics;
 using System.Runtime.Serialization;
 using System.Threading;
index 98246ef..bb9be88 100644 (file)
@@ -18,7 +18,6 @@ namespace System {
     using System.Runtime.Serialization;
     using System.Runtime.CompilerServices;
     using System.Globalization;
-        using System.Security.Permissions;
     using System.Runtime.Versioning;
     using System.Diagnostics.Contracts;
     
index 93f6eb8..a388fc6 100644 (file)
@@ -13,7 +13,6 @@
 namespace System {
     using System.Runtime.Serialization;
     using System.Globalization;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Diagnostics.Contracts;
 
index f1eeaa8..eaedc6d 100644 (file)
@@ -22,7 +22,6 @@ namespace System.Reflection
     using CultureInfo = System.Globalization.CultureInfo;
     using System.Security;
     using System.Security.Policy;
-    using System.Security.Permissions;
     using System.IO;
     using StringBuilder = System.Text.StringBuilder;
     using System.Configuration.Assemblies;
index 9551955..01be855 100644 (file)
@@ -20,7 +20,6 @@ namespace System.Reflection {
     using System.Runtime.CompilerServices;
     using CultureInfo = System.Globalization.CultureInfo;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Runtime.Versioning;
     using System.Diagnostics.Contracts;
index faddc9e..195ee11 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection
     using System.Runtime.InteropServices;
     using System.Runtime.Serialization;
     using System.Security;
-    using System.Security.Permissions;
     using System.Threading;
     using MemberListType = System.RuntimeType.MemberListType;
     using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache;
index 4d76923..b71c7bb 100644 (file)
@@ -14,7 +14,6 @@ using System.Diagnostics;
 using System.Diagnostics.Tracing;
 using System.Globalization;
 using System.Security;
-using System.Security.Permissions;
 using System.Runtime.ConstrainedExecution;
 using System.Runtime.Versioning;
 using System.Diagnostics.Contracts;
index fa5f1ae..5575e28 100644 (file)
@@ -38,7 +38,6 @@ namespace System.Reflection.Emit
     using System.Runtime.Serialization;
     using System.Runtime.Versioning;
     using System.Security;
-    using System.Security.Permissions;
     using System.Security.Policy;
     using System.Threading;
 
@@ -235,9 +234,6 @@ namespace System.Reflection.Emit
                                  AssemblyBuilderAccess access,
                                  String dir,
                                  Evidence evidence,
-                                 PermissionSet requiredPermissions,
-                                 PermissionSet optionalPermissions,
-                                 PermissionSet refusedPermissions,
                                  ref StackCrawlMark stackMark,
                                  IEnumerable<CustomAttributeBuilder> unsafeAssemblyAttributes,
                                  SecurityContextSource securityContextSource)
@@ -298,9 +294,6 @@ namespace System.Reflection.Emit
                                                                                         name,
                                                                                         evidence,
                                                                                         ref stackMark,
-                                                                                        requiredPermissions,
-                                                                                        optionalPermissions,
-                                                                                        refusedPermissions,
                                                                                         securityRulesBlob,
                                                                                         aptcaBlob,
                                                                                         access,
@@ -311,10 +304,6 @@ namespace System.Reflection.Emit
                                                      name.Name,
                                                      access,
                                                      dir);
-            m_assemblyData.AddPermissionRequests(requiredPermissions,
-                                                 optionalPermissions,
-                                                 refusedPermissions);
-
 #if FEATURE_APPX
             if (AppDomain.ProfileAPICheck)
             {
@@ -371,7 +360,7 @@ namespace System.Reflection.Emit
 
             StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
             return InternalDefineDynamicAssembly(name, access, null,
-                                                 null, null, null, null, ref stackMark, null, SecurityContextSource.CurrentAssembly);
+                                                 null, ref stackMark, null, SecurityContextSource.CurrentAssembly);
         }
 
         [MethodImplAttribute(MethodImplOptions.NoInlining)] // Methods containing StackCrawlMark local var has to be marked non-inlineable
@@ -385,7 +374,7 @@ namespace System.Reflection.Emit
             StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
             return InternalDefineDynamicAssembly(name,
                                                  access,
-                                                 null, null, null, null, null,
+                                                 null, null,
                                                  ref stackMark,
                                                  assemblyAttributes, SecurityContextSource.CurrentAssembly);
         }
@@ -396,9 +385,6 @@ namespace System.Reflection.Emit
                                                               AssemblyName name,
                                                               Evidence identity,
                                                               ref StackCrawlMark stackMark,
-                                                              PermissionSet requiredPermissions,
-                                                              PermissionSet optionalPermissions,
-                                                              PermissionSet refusedPermissions,
                                                               byte[] securityRulesBlob,
                                                               byte[] aptcaBlob,
                                                               AssemblyBuilderAccess access,
@@ -412,9 +398,6 @@ namespace System.Reflection.Emit
             AssemblyBuilderAccess access,
             String dir,
             Evidence evidence,
-            PermissionSet requiredPermissions,
-            PermissionSet optionalPermissions,
-            PermissionSet refusedPermissions,
             ref StackCrawlMark stackMark,
             IEnumerable<CustomAttributeBuilder> unsafeAssemblyAttributes,
             SecurityContextSource securityContextSource)
@@ -427,9 +410,6 @@ namespace System.Reflection.Emit
                                            access,
                                            dir,
                                            evidence,
-                                           requiredPermissions,
-                                           optionalPermissions,
-                                           refusedPermissions,
                                            ref stackMark,
                                            unsafeAssemblyAttributes,
                                            securityContextSource);
index 4e2dee0..7ac9dae 100644 (file)
@@ -125,24 +125,6 @@ namespace System.Reflection.Emit {
             //      }
         }
         
-        // add security permission requests
-        internal void AddPermissionRequests(
-            PermissionSet       required,
-            PermissionSet       optional,
-            PermissionSet       refused)
-        {
-            BCLDebug.Log("DYNIL","## DYNIL LOGGING: AssemblyBuilderData.AddPermissionRequests");
-            if (m_isSaved == true)
-            {
-                // assembly has been saved before!
-                throw new InvalidOperationException(Environment.GetResourceString(
-                    "InvalidOperation_CannotAlterAssembly"));
-            }        
-            m_RequiredPset = required;
-            m_OptionalPset = optional;
-            m_RefusedPset = refused;
-        }
-         
         internal List<ModuleBuilder>    m_moduleBuilderList;
         internal List<ResWriterData>    m_resWriterList;
         internal String                 m_strAssemblyName;
@@ -158,11 +140,6 @@ namespace System.Reflection.Emit {
 
         // hard coding the assembly def token
         internal const int              m_tkAssembly = 0x20000001;
-
-        // Security permission requests
-        internal PermissionSet          m_RequiredPset;
-        internal PermissionSet          m_OptionalPset;
-        internal PermissionSet          m_RefusedPset;
         
         // tracking AssemblyDef's CAs for persistence to disk
         internal CustomAttributeBuilder[] m_CABuilders;
index 3bc6a05..3bc0286 100644 (file)
@@ -12,7 +12,6 @@ namespace System.Reflection.Emit
     using System.Collections.Generic;
     using System.Diagnostics.SymbolStore;
     using System.Security;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Diagnostics.Contracts;
     
index da8c7d9..5d08ca0 100644 (file)
@@ -19,7 +19,6 @@ namespace System.Reflection.Emit {
     using System.Reflection;
     using System.IO;
     using System.Text;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Globalization;
     using System.Diagnostics;
index f58ca75..cb2667a 100644 (file)
@@ -14,7 +14,6 @@ namespace System.Reflection.Emit
     using System.Reflection;
     using System.Collections;
     using System.Collections.Generic;
-    using System.Security.Permissions;
     using System.Threading;
     using System.Diagnostics;
     using System.Diagnostics.CodeAnalysis;
index 442311c..f1d99d3 100644 (file)
@@ -11,7 +11,6 @@ namespace System.Reflection.Emit
     using CultureInfo = System.Globalization.CultureInfo;
     using System.Reflection;
     using System.Security;
-    using System.Security.Permissions;
     using System.Threading;
     using System.Runtime.CompilerServices;
     using System.Runtime.Versioning;
@@ -270,7 +269,7 @@ namespace System.Reflection.Emit
                 AssemblyBuilder assembly = AssemblyBuilder.InternalDefineDynamicAssembly(
                     assemblyName,
                     AssemblyBuilderAccess.Run,
-                    null, null, null, null, null,
+                    null, null,
                     ref stackMark,
                     assemblyAttributes,
                     SecurityContextSource.CurrentAssembly);
index afc8257..96564d5 100644 (file)
@@ -20,7 +20,6 @@ namespace System.Reflection.Emit {
     using System.Reflection;
     using System.Runtime.InteropServices;
     using CultureInfo = System.Globalization.CultureInfo;
-    using System.Security.Permissions;
 
     sealed public class EnumBuilder : TypeInfo
     {
index bc1d7ea..34c76b9 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection.Emit {
     
     using System;
     using System.Reflection;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Diagnostics.Contracts;
     
index 26054a9..8ffdce9 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection.Emit {
     
     using System;
     using System.Reflection;
-    using System.Security.Permissions;
     [Serializable]
     public struct EventToken
     {
index 27750e3..5953b67 100644 (file)
@@ -10,7 +10,6 @@ namespace System.Reflection.Emit
     using System;
     using CultureInfo = System.Globalization.CultureInfo;
     using System.Reflection;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
     
     public sealed class FieldBuilder : FieldInfo
index 02710ad..add428f 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection.Emit {
     
     using System;
     using System.Reflection;
-    using System.Security.Permissions;
 
     // The FieldToken class is an opaque representation of the Token returned
     // by the Metadata to represent the field.  FieldTokens are generated by 
index af8faa6..2cee63f 100644 (file)
@@ -10,7 +10,6 @@ namespace System.Reflection.Emit
     using System.Diagnostics.SymbolStore;
     using System.Runtime.InteropServices;
     using System.Reflection;
-    using System.Security.Permissions;
     using System.Globalization;
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
index b9a3b30..c7b987f 100644 (file)
@@ -16,7 +16,6 @@
 namespace System.Reflection.Emit {
     using System;
     using System.Reflection;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
 
     // The Label class is an opaque representation of a label used by the 
index 2db6e51..fe4c331 100644 (file)
@@ -4,7 +4,6 @@
 
 using System;
 using System.Reflection;
-using System.Security.Permissions;
 using System.Runtime.InteropServices;
 
 namespace System.Reflection.Emit 
index f718b7b..17c8ce0 100644 (file)
@@ -14,7 +14,6 @@ namespace System.Reflection.Emit
     using System.Security;
     using System.Collections;
     using System.Collections.Generic;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
index d7361b0..76b7279 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection.Emit {
     
     using System;
     using System.Reflection;
-    using System.Security.Permissions;
 
     [Serializable]
     public struct MethodToken
index 58608fe..30e6382 100644 (file)
@@ -15,7 +15,6 @@ namespace System.Reflection.Emit
     using System.IO;
     using System.Resources;
     using System.Security;
-    using System.Security.Permissions;
     using System.Runtime.Serialization;
     using System.Text;
     using System.Threading;
index 2e73bda..324fad9 100644 (file)
@@ -13,7 +13,6 @@
 namespace System.Reflection.Emit {
 
 using System;
-using System.Security.Permissions;
 
 //
 // Internal enums for opcode values. Note that the value names are used to construct
index 98838f9..74a9de1 100644 (file)
@@ -5,7 +5,6 @@
 namespace System.Reflection.Emit {
 using System;
 using System.Threading;
-using System.Security.Permissions;
 using System.Diagnostics.Contracts;
 
 public struct OpCode
index eb6fe17..1b3babf 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection.Emit {
     using System.Runtime.InteropServices;
     using System;
     using System.Reflection;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
 
     public class ParameterBuilder
index 05dc166..a4a32a5 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection.Emit {
     
     using System;
     using System.Reflection;
-    using System.Security.Permissions;
 
     // The ParameterToken class is an opaque representation of the Token returned
     // by the Metadata to represent the parameter. 
index cd09a0e..7c4ed9d 100644 (file)
@@ -17,7 +17,6 @@ namespace System.Reflection.Emit {
     using System;
     using System.Reflection;
     using CultureInfo = System.Globalization.CultureInfo;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Diagnostics.Contracts;
 
index 7f23d59..72ab983 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection.Emit {
     
     using System;
     using System.Reflection;
-    using System.Security.Permissions;
 
     [Serializable]
     public struct PropertyToken {
index dd72bef..b43abcb 100644 (file)
@@ -14,7 +14,6 @@ namespace System.Reflection.Emit
     using System.Runtime.CompilerServices;
     using System.Runtime.InteropServices;
     using System.Runtime.Versioning;
-    using System.Security.Permissions;
     
     public sealed class SignatureHelper
     {
index 5b8dfbf..5c908b8 100644 (file)
@@ -17,7 +17,6 @@ namespace System.Reflection.Emit {
     
     using System;
     using System.Reflection;
-    using System.Security.Permissions;
 
     public struct SignatureToken {
     
index 92bec24..8522256 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection.Emit {
     
     using System;
     using System.Reflection;
-    using System.Security.Permissions;
 
     [Serializable]
     public struct StringToken {
index 582c95f..88502cb 100644 (file)
@@ -9,7 +9,6 @@ namespace System.Reflection.Emit {
     using System;
     using System.Reflection;
     using System.Security;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Runtime.CompilerServices;
     using System.Collections.Generic;
index a621a47..4fa851c 100644 (file)
@@ -17,7 +17,6 @@ namespace System.Reflection.Emit {
     using System;
     using System.Reflection;
     using System.Threading;
-    using System.Security.Permissions;
 
     [Serializable]
     public struct TypeToken {
index 1790b03..f57728b 100644 (file)
@@ -13,7 +13,6 @@ namespace System.Reflection
     using System.Runtime.InteropServices;
     using System.Runtime.Serialization;
     using System.Runtime.ConstrainedExecution;
-    using System.Security.Permissions;
     using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache;
 
     [Serializable]
index f534e8d..ffb9e59 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection
     using System.Runtime.ConstrainedExecution;
     using System.Runtime.InteropServices;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Threading;
     using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache;
 
index dc6b726..b1d9c5e 100644 (file)
@@ -9,7 +9,6 @@ using System.Reflection;
 using System.Globalization;
 using System.Threading;
 using System.Diagnostics;
-using System.Security.Permissions;
 using System.Collections;
 using System.Runtime.CompilerServices;
 using System.Security;
index 3466ed2..5ecbfe0 100644 (file)
@@ -11,7 +11,6 @@ namespace System.Reflection
     using System.Diagnostics.Contracts;
     using System.Runtime;
     using System.Runtime.InteropServices;
-    using System.Security.Permissions;
 
     [Serializable]
     public abstract class MemberInfo : ICustomAttributeProvider
index 1a666d6..3109821 100644 (file)
@@ -11,7 +11,6 @@ namespace System.Reflection
     using System.Globalization;
     using System.Runtime.CompilerServices;
     using System.Runtime.InteropServices;
-    using System.Security.Permissions;
     using System.Text;
     using System.Threading;
 
index af52f5f..576a808 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Reflection
     using System.Runtime.ConstrainedExecution;
     using System.Runtime.Serialization;
     using System.Security;
-    using System.Security.Permissions;
     using System.Text;
     using System.Threading;
     using MemberListType = System.RuntimeType.MemberListType;
index a05acdb..f62c5b5 100644 (file)
@@ -9,7 +9,6 @@ namespace System.Reflection
     using System;
     using System.Runtime.Remoting;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
 
     // This is not serializable because it is a reflection command.
index 5acaaeb..bdf95fc 100644 (file)
@@ -17,7 +17,6 @@ namespace System.Reflection
     using System.Threading;
     using System.Runtime.CompilerServices;
     using System.Security;
-    using System.Security.Permissions;
     using System.IO;
     using System.Globalization;
     using System.Runtime.Versioning;
index 107dedc..fad4402 100644 (file)
@@ -13,7 +13,6 @@ namespace System.Reflection
     using System.Runtime.InteropServices;
     using System.Runtime.Serialization;
     using System.Runtime.CompilerServices;
-    using System.Security.Permissions;
     using System.Threading;
     using MdToken = System.Reflection.MetadataToken;
 
index 330396c..68c15af 100644 (file)
@@ -15,7 +15,6 @@ namespace System.Reflection
     using System.Runtime.ConstrainedExecution;
     using System.Runtime.InteropServices;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Text;
     using RuntimeTypeCache = System.RuntimeType.RuntimeTypeCache;
 
index 7e5d8ec..cccf060 100644 (file)
@@ -19,7 +19,6 @@ namespace System.Reflection {
     
     using System;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
     [Serializable]
     public sealed class ReflectionTypeLoadException : SystemException, ISerializable {
index 3350e41..0121982 100644 (file)
@@ -22,7 +22,6 @@ namespace System.Reflection
     using System.Runtime.InteropServices;
     using System.Runtime.Serialization;
     using System.Security;
-    using System.Security.Permissions;
     using System.Runtime.Versioning;
     using Microsoft.Win32;
     using System.Diagnostics.Contracts;
index a03c12c..f17a7c8 100644 (file)
@@ -23,7 +23,6 @@ namespace System.Resources {
     using System.Reflection;
     using System.Runtime.Serialization;
     using System.Security;
-    using System.Security.Permissions;
     using System.Threading;
     using System.Runtime.InteropServices;
     using System.Runtime.CompilerServices;
index 68feaa2..d752771 100644 (file)
@@ -21,7 +21,6 @@ namespace System.Resources {
     using System.Collections;
     using System.Collections.Generic;
     using System.Reflection;
-    using System.Security.Permissions;
     using System.Security;
     using System.Globalization;
     using System.Configuration.Assemblies;
index d3932ff..8fd9346 100644 (file)
@@ -17,7 +17,6 @@ namespace System.Resources {
     using System.Collections;
     using System.IO;
     using System.Globalization;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Reflection;
     using System.Runtime.Serialization;
index ab551b3..80f0626 100644 (file)
@@ -16,7 +16,6 @@ using System.Runtime.ConstrainedExecution;
 using System.Globalization;
 using System.Threading;
 using System.Diagnostics;
-using System.Security.Permissions;
 using System.Collections;
 using System.Collections.Generic;
 using System.Runtime;
index 35ccdac..afb0c22 100644 (file)
@@ -18,7 +18,6 @@ using System.Diagnostics.CodeAnalysis;
 using System.Diagnostics.Contracts;
 using System.Runtime.ExceptionServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Threading;
 using System.Threading.Tasks;
 
index 926eb6c..198a4ab 100644 (file)
@@ -18,7 +18,6 @@ namespace System.Runtime.CompilerServices {
     using System.Runtime.InteropServices;
     using System.Runtime.ConstrainedExecution;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Threading;
     using System.Runtime.Versioning;
     using System.Diagnostics.Contracts;
index d2691df..e3b2d2c 100644 (file)
@@ -15,7 +15,6 @@ namespace System.Runtime.CompilerServices {
     using System;
     using System.Runtime.Serialization;
     using System.Runtime.Remoting;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
         
     [Serializable]
index f8d33eb..f01900a 100644 (file)
@@ -44,7 +44,6 @@ using System.Diagnostics.Contracts;
 using System.Security;
 using System.Threading;
 using System.Threading.Tasks;
-using System.Security.Permissions;
 using System.Diagnostics.Tracing;
 
 // NOTE: For performance reasons, initialization is not verified.  If a developer
index 86789bf..92d1b4f 100644 (file)
@@ -28,7 +28,6 @@ using System.Diagnostics.Contracts;
 using System.Diagnostics.Tracing;
 using System.Threading;
 using System.Threading.Tasks;
-using System.Security.Permissions;
 
 namespace System.Runtime.CompilerServices
 {
index 48e50bf..713cbd4 100644 (file)
@@ -7,7 +7,6 @@ namespace System.Runtime {
     using System;
     using System.Runtime.CompilerServices;
     using System.Runtime.ConstrainedExecution;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
 
     // These settings are the same format as in clr\src\vm\gcpriv.h
index a0d48b0..d36f8cf 100644 (file)
@@ -15,7 +15,6 @@ namespace System.Runtime.InteropServices {
    
     using System;
     using System.Security;
-    using System.Security.Permissions;
 
     [Serializable]
     public sealed class BStrWrapper
index 700e059..a9a7aac 100644 (file)
@@ -48,7 +48,6 @@
 using System;
 using System.Reflection;
 using System.Threading;
-using System.Security.Permissions;
 using System.Runtime.CompilerServices;
 using System.Runtime.Versioning;
 using System.Runtime.ConstrainedExecution;
index 6f2f837..ccf25af 100644 (file)
@@ -15,7 +15,6 @@ namespace System.Runtime.InteropServices {
    
     using System;
     using System.Security;
-    using System.Security.Permissions;
 
     [Serializable]
     public sealed class DispatchWrapper
index 57149ab..da02893 100644 (file)
@@ -14,7 +14,6 @@
 namespace System.Runtime.InteropServices {
    
     using System;
-    using System.Security.Permissions;
 
     [Serializable]
     public sealed class ErrorWrapper
index f74c807..3eeb2f1 100644 (file)
@@ -5,7 +5,6 @@
 namespace System.Runtime.InteropServices
 {    
     using System;
-    using System.Security.Permissions;
     using System.Runtime.CompilerServices;
     using System.Threading;
     using System.Runtime.Versioning;
index 1d3d943..895aa54 100644 (file)
@@ -17,7 +17,6 @@ namespace System.Runtime.InteropServices {
     using System;
     using System.Reflection;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     
     [GuidAttribute("b36b5c63-42ef-38bc-a07e-0b34c98f164a")]
     [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsDual)]
index 7d8b20e..2f4ddf4 100644 (file)
@@ -19,7 +19,6 @@ namespace System.Runtime.InteropServices
     using System.Reflection;
     using System.Reflection.Emit;
     using System.Security;
-    using System.Security.Permissions;
     using System.Text;
     using System.Threading;
     using System.Runtime.Remoting;
index 25678b3..28abe0c 100644 (file)
@@ -17,7 +17,6 @@ using System.IO;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Reflection;
 using Microsoft.Win32;
 using System.Runtime.Versioning;
index eba67ae..0f914fb 100644 (file)
@@ -69,7 +69,6 @@
 namespace System.Runtime.InteropServices
 {
 using System;
-using System.Security.Permissions;
 using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
 using System.Runtime.ConstrainedExecution;
index ed9910e..733ddfe 100644 (file)
@@ -19,7 +19,6 @@ namespace System.Runtime.InteropServices {
 using System;
 using System.Reflection;
 using System.Threading;
-using System.Security.Permissions;
 using System.Runtime;
 using System.Runtime.CompilerServices;
 using System.IO;
index 3d3a42c..9f9d819 100644 (file)
@@ -20,7 +20,6 @@ using System.Runtime.InteropServices;
 using System.Threading;
 using System.Runtime.CompilerServices;
 using System.Runtime.ConstrainedExecution;
-using System.Security.Permissions;
 using System.Runtime.Versioning;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
index 032f0d8..56a4189 100644 (file)
@@ -17,7 +17,6 @@
 ===========================================================*/
 
 using System;
-using System.Security.Permissions;
 using System.Runtime.InteropServices;
 
 namespace System.Runtime.ConstrainedExecution
index a9425f7..c3f9eb4 100644 (file)
@@ -18,7 +18,6 @@ namespace System.Runtime.Serialization {
     using System.Collections;
     using System.Collections.Generic;
     using System.Security;    
-    using System.Security.Permissions;
     using System.Runtime.Remoting;
     using System.Runtime.CompilerServices;
     using System.Runtime.Versioning;
index c863747..ef5ee6a 100644 (file)
@@ -18,7 +18,6 @@
 namespace System.Runtime.Serialization {
 
     using System;
-    using System.Security.Permissions;
     // Interface does not need to be marked with the serializable attribute
     public interface IObjectReference {
         Object GetRealObject(StreamingContext context);
index 9791b4e..816aa04 100644 (file)
@@ -16,7 +16,6 @@
 namespace System.Runtime.Serialization {
     using System.Runtime.Remoting;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System;
     using System.Reflection;
 
index 6074095..504f3ac 100644 (file)
@@ -19,7 +19,6 @@ namespace System
     using System.Text;
     using System.Globalization;
     using System.Security;
-    using System.Security.Permissions;
     using Microsoft.Win32.SafeHandles;
     using System.Diagnostics.Contracts;
     using StackCrawlMark = System.Threading.StackCrawlMark;
index 57ac999..8811be8 100644 (file)
@@ -18,7 +18,6 @@ namespace System.Security
     using System.Security;
     using System;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Reflection;
     using System.Text;
     using System.Security.Policy;
@@ -35,7 +34,7 @@ namespace System.Security
         }
 
 #pragma warning disable 618
-        internal static Exception MakeSecurityException(AssemblyName asmName, Evidence asmEvidence, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, Object demand)
+        internal static Exception MakeSecurityException(AssemblyName asmName, Evidence asmEvidence, RuntimeMethodHandleInternal rmh, Object demand)
 #pragma warning restore 618
         {
             return new SecurityException(GetResString("Arg_SecurityException"));
index 3c7f8bf..55dcce0 100644 (file)
@@ -3,7 +3,6 @@
 // See the LICENSE file in the project root for more information.
 using System;
 using System.Security;
-using System.Security.Permissions;
 
 namespace System.Security
 {
index 9226bb2..07b7f3e 100644 (file)
@@ -6,7 +6,6 @@ namespace System.Text
 {
     using System;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
 
index 24a521f..79474f8 100644 (file)
@@ -5,7 +5,6 @@
 namespace System.Text
 {
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Text;
     using System;
     using System.Diagnostics.Contracts;
index 4556540..95901e0 100644 (file)
@@ -5,7 +5,6 @@
 namespace System.Text
 {
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Text;
     using System;
     using System.Diagnostics.Contracts;
index fdc093a..8cb01e4 100644 (file)
@@ -12,7 +12,6 @@ namespace System.Text
     using System.Runtime.Serialization;
     using System.Globalization;
     using System.Security;
-    using System.Security.Permissions;
     using System.Threading;
     using System.Text;
     using System.Diagnostics;
index 8fe8f89..26009bf 100644 (file)
@@ -13,7 +13,6 @@ namespace System.Text
     using System.Collections;
     using System.Runtime.CompilerServices;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
 
 
     //
index 0626625..9418d2e 100644 (file)
@@ -10,7 +10,6 @@ namespace System.Text
 {
     using System;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
 
index 58ab4f7..191bbfe 100644 (file)
@@ -20,7 +20,6 @@ namespace System.Text
     using System;
     using System.Globalization;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
 
index 3b95ab3..d8ef18a 100644 (file)
@@ -11,7 +11,6 @@ namespace System.Text
     using System;
     using System.Globalization;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
 
index 8a27860..fc6b230 100644 (file)
@@ -14,7 +14,6 @@
 namespace System.Threading {
     
     using System;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
 
     public sealed class AutoResetEvent : EventWaitHandle
index d22c3af..b68ba4c 100644 (file)
@@ -9,7 +9,6 @@
 
 using System;
 using System.Runtime.InteropServices;
-using System.Security.Permissions;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
 using System.Runtime;
index ac27fe3..89e98fa 100644 (file)
@@ -6,7 +6,6 @@
 ////////////////////////////////////////////////////////////////////////////////
 
 using System.Diagnostics.Contracts;
-using System.Security.Permissions;
 using System.Runtime.CompilerServices;
 
 namespace System.Threading
index 7b9aa85..1e70d6f 100644 (file)
@@ -10,7 +10,6 @@ using System;
 using System.Security;
 using System.Collections.Generic;
 using System.Runtime.InteropServices;
-using System.Security.Permissions;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
 using System.Runtime;
index a62c296..af055e3 100644 (file)
@@ -11,7 +11,6 @@
 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
 using System;
-using System.Security.Permissions;
 using System.Runtime.InteropServices;
 using System.Threading;
 using System.Diagnostics;
index 7e2df04..0268948 100644 (file)
@@ -28,7 +28,6 @@ namespace System.Threading
     using System;
     using System.Threading;
     using System.Runtime.CompilerServices;
-    using System.Security.Permissions;
     using System.IO;
     using Microsoft.Win32;
     using Microsoft.Win32.SafeHandles;
index d063af7..47a55a3 100644 (file)
@@ -19,7 +19,6 @@ namespace System.Threading
     using System.Reflection;
     using System.Runtime.ExceptionServices;
     using System.Runtime.Serialization;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Runtime.CompilerServices;
     using System.Runtime.ConstrainedExecution;
index 53b2264..70e6b45 100644 (file)
@@ -6,7 +6,6 @@
 namespace System.Threading
 {
     using System;
-    using System.Security.Permissions;
     using System.Runtime.CompilerServices;
     using System.Runtime.ConstrainedExecution;
     using System.Runtime.Versioning;
index 238cc89..af32673 100644 (file)
@@ -11,7 +11,6 @@
 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
 
-using System.Security.Permissions;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
 namespace System.Threading
index a4d5f5e..a8e012f 100644 (file)
@@ -14,7 +14,6 @@
 namespace System.Threading {
     
     using System;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
 
     public sealed class ManualResetEvent : EventWaitHandle
index ed44e80..2d57b41 100644 (file)
@@ -13,7 +13,6 @@
 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
 using System;
-using System.Security.Permissions;
 using System.Threading;
 using System.Runtime.InteropServices;
 using System.Diagnostics;
index 27f6296..af96336 100644 (file)
@@ -17,7 +17,6 @@
 namespace System.Threading {
 
     using System;
-    using System.Security.Permissions;
     using System.Runtime;
     using System.Runtime.Remoting;
     using System.Threading;
index bf1730c..68b7685 100644 (file)
@@ -16,7 +16,6 @@ namespace System.Threading
     using System;
     using System.Threading;
     using System.Runtime.CompilerServices;
-    using System.Security.Permissions;
     using System.IO;
     using Microsoft.Win32;
     using Microsoft.Win32.SafeHandles;
index 92b4074..d3caff5 100644 (file)
@@ -31,7 +31,6 @@ namespace System.Threading
     using System.Runtime.CompilerServices;
     using System.Runtime.Versioning;
     using System.Security;
-    using System.Security.Permissions;
     using System.Runtime.ConstrainedExecution;
     using System.Diagnostics;
     using System.Diagnostics.Contracts;
index 45d24fe..32b6315 100644 (file)
@@ -15,7 +15,6 @@
 
 
 namespace System.Threading {
-    using System.Security.Permissions;
     using System.Threading;
     using System.Runtime.InteropServices;
 
index 0477dcf..c3b43d9 100644 (file)
@@ -16,7 +16,6 @@ using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.Security;
-using System.Security.Permissions;
 using System.Runtime.InteropServices;
 using System.Diagnostics.Contracts;
 using System.Threading.Tasks;
index 1b31407..8431f65 100644 (file)
@@ -12,7 +12,6 @@
 
 using System;
 using System.Runtime.ConstrainedExecution;
-using System.Security.Permissions;
 using System.Threading;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
index d96525c..20d56ba 100644 (file)
@@ -13,7 +13,6 @@
 namespace System.Threading
 {    
     using Microsoft.Win32.SafeHandles;
-    using System.Security.Permissions;
     using System.Runtime.InteropServices;
     using System.Runtime.CompilerServices;
     using System.Runtime.ExceptionServices;
index c7a96b0..a87406a 100644 (file)
@@ -20,7 +20,6 @@ using System.Diagnostics;
 using System.Diagnostics.CodeAnalysis;
 using System.Diagnostics.Contracts;
 using System.Security;
-using System.Security.Permissions;
 
 namespace System.Threading.Tasks
 {
index 4d72270..137afa1 100644 (file)
@@ -12,7 +12,6 @@
 
 using System;
 using System.Security;
-using System.Security.Permissions;
 using System.Runtime.CompilerServices;
 using System.Threading;
 using System.Diagnostics;
index c14fb29..12cc1da 100644 (file)
@@ -14,7 +14,6 @@ using System;
 using System.Collections.Generic;
 using System.Text;
 using System.Security;
-using System.Security.Permissions;
 using System.Runtime.CompilerServices;
 
 namespace System.Threading.Tasks
index 82864aa..7013c5c 100644 (file)
@@ -18,7 +18,6 @@ using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Runtime.ExceptionServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Threading;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
index c2a63ee..bf9f9cb 100644 (file)
@@ -17,7 +17,6 @@ using System.Diagnostics.Contracts;
 using System.Collections.Generic;
 using System.Runtime.CompilerServices;
 using System.Runtime.ExceptionServices;
-using System.Security.Permissions;
 using System.Threading;
 
 // Disable the "reference to volatile field not treated as volatile" error.
index 417a6bb..89ba298 100644 (file)
@@ -15,7 +15,6 @@
 using System;
 using System.Collections.Generic;
 using System.Security;
-using System.Security.Permissions;
 using System.Runtime.CompilerServices;
 using System.Threading;
 using System.Diagnostics;
index fad3fc0..d68c3fe 100644 (file)
@@ -16,7 +16,6 @@ using System.Collections.Generic;
 using System.Globalization;
 using System.Threading;
 using System.Security;
-using System.Security.Permissions;
 using System.Collections.Concurrent;
 using System.Diagnostics.Contracts;
 using System.Diagnostics;
index 94a980b..15136f1 100644 (file)
@@ -16,7 +16,6 @@ using System.Runtime;
 using System.Runtime.CompilerServices;
 using System.Runtime.ExceptionServices;
 using System.Security;
-using System.Security.Permissions;
 using System.Threading;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
index 3ac9a55..319ae1c 100644 (file)
@@ -19,8 +19,6 @@ namespace System.Threading {
     using System.Runtime;
     using System.Runtime.InteropServices;
     using System;
-    using System.Security.Permissions;
-    using System.Security.Principal;
     using System.Globalization;
     using System.Collections.Generic;
     using System.Runtime.Serialization;
@@ -283,8 +281,7 @@ namespace System.Threading {
                 t.SetExecutionContextHelper(ec);
             }
 
-            IPrincipal principal = null;
-            StartInternal(principal, ref stackMark);
+            StartInternal(ref stackMark);
         }
 
         internal ExecutionContext ExecutionContext
@@ -300,7 +297,7 @@ namespace System.Threading {
         }
 
         [MethodImplAttribute(MethodImplOptions.InternalCall)]
-        private extern void StartInternal(IPrincipal principal, ref StackCrawlMark stackMark);
+        private extern void StartInternal(ref StackCrawlMark stackMark);
 
 
         // Helper method to get a logical thread ID for StringBuilder (for
index 2b996cb..eedf6d0 100644 (file)
@@ -16,7 +16,6 @@
 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
 using System.Collections.Generic;
-using System.Security.Permissions;
 using System.Diagnostics;
 using System.Diagnostics.Contracts;
 
index eb3f20b..1002aa0 100644 (file)
@@ -21,7 +21,6 @@ using System.Runtime.CompilerServices;
 using System.Runtime.ConstrainedExecution;
 using System.Runtime.InteropServices;
 using System.Security;
-using System.Security.Permissions;
 using Microsoft.Win32;
 
 namespace System.Threading
index d288c47..e4beddc 100644 (file)
@@ -14,7 +14,6 @@
 =============================================================================*/
 
 namespace System.Threading {
-    using System.Security.Permissions;
     using System.Threading;
 
     // Define the delegate
index d497153..c874b08 100644 (file)
@@ -8,7 +8,6 @@ namespace System.Threading
 {
     using System;
     using System.Security;
-    using System.Security.Permissions;
     using Microsoft.Win32;
     using System.Runtime.CompilerServices;
     using System.Runtime.InteropServices;
index 9f15d58..668ded3 100644 (file)
@@ -17,7 +17,6 @@ namespace System.Threading
     using System.Threading;
     using System.Runtime.Remoting;
     using System;
-    using System.Security.Permissions;
     using System.Runtime.CompilerServices;
     using System.Runtime.InteropServices;
     using Microsoft.Win32.SafeHandles;
index fcb8435..3647451 100644 (file)
@@ -19,7 +19,6 @@ namespace System
     using System.Runtime.InteropServices;
     using System.Runtime.CompilerServices;
     using System.Security;
-    using System.Security.Permissions;
     using System.Collections;
     using System.Collections.Generic;
     using System.Runtime.Versioning;
index 8145a3a..7bc3a1b 100644 (file)
@@ -20,7 +20,6 @@ namespace System {
     using System.Runtime.CompilerServices;
     using System.Runtime.Versioning;
     using System.Security;
-    using System.Security.Permissions;
     using System.Diagnostics.Contracts;
 
     [Serializable]
index c3bc47d..5e8f3c4 100644 (file)
@@ -11,7 +11,6 @@ namespace System {
     using System.Runtime.CompilerServices;
     using CultureInfo = System.Globalization.CultureInfo;
     using FieldInfo = System.Reflection.FieldInfo;
-    using System.Security.Permissions;
     using System.Runtime.Versioning;
     using System.Diagnostics.Contracts;
 
index 0da8876..6600d15 100644 (file)
@@ -13,7 +13,6 @@ namespace System {
     using System;
     using System.Runtime.Serialization;
     using System.Security;
-    using System.Security.Permissions;
     using System.Runtime.CompilerServices;
     using System.Runtime.Versioning;
     using System.Diagnostics;
index 5bb5a2e..86800a5 100644 (file)
@@ -21,7 +21,6 @@ namespace System
     using System.Runtime.InteropServices.WindowsRuntime;
     using System.Runtime.CompilerServices;
     using System.Reflection;
-    using System.Security.Permissions;
 
     internal class __ComObject : MarshalByRefObject
     {
index 85c828f..3935cb5 100644 (file)
@@ -580,7 +580,7 @@ void QCALLTYPE AppDomainNative::SetupBindingPaths(__in_z LPCWSTR wszTrustedPlatf
 
 #endif // FEATURE_VERSIONING
 
-FCIMPL12(Object*, AppDomainNative::CreateDynamicAssembly, AppDomainBaseObject* refThisUNSAFE, AssemblyNameBaseObject* assemblyNameUNSAFE, Object* identityUNSAFE, StackCrawlMark* stackMark, Object* requiredPsetUNSAFE, Object* optionalPsetUNSAFE, Object* refusedPsetUNSAFE, U1Array *securityRulesBlobUNSAFE, U1Array *aptcaBlobUNSAFE, INT32 access, INT32 dwFlags, SecurityContextSource securityContextSource)
+FCIMPL9(Object*, AppDomainNative::CreateDynamicAssembly, AppDomainBaseObject* refThisUNSAFE, AssemblyNameBaseObject* assemblyNameUNSAFE, Object* identityUNSAFE, StackCrawlMark* stackMark, U1Array *securityRulesBlobUNSAFE, U1Array *aptcaBlobUNSAFE, INT32 access, INT32 dwFlags, SecurityContextSource securityContextSource)
 {
     FCALL_CONTRACT;
 
@@ -594,9 +594,6 @@ FCIMPL12(Object*, AppDomainNative::CreateDynamicAssembly, AppDomainBaseObject* r
     args.refThis                = (APPDOMAINREF)    refThisUNSAFE;
     args.assemblyName           = (ASSEMBLYNAMEREF) assemblyNameUNSAFE;
     args.identity               = (OBJECTREF)       identityUNSAFE;
-    args.requiredPset           = (OBJECTREF)       requiredPsetUNSAFE;
-    args.optionalPset           = (OBJECTREF)       optionalPsetUNSAFE;
-    args.refusedPset            = (OBJECTREF)       refusedPsetUNSAFE;
     args.securityRulesBlob      = (U1ARRAYREF)      securityRulesBlobUNSAFE;
     args.aptcaBlob              = (U1ARRAYREF)      aptcaBlobUNSAFE;
     args.loaderAllocator        = NULL;
index 5aa781b..cb0c364 100644 (file)
@@ -34,7 +34,7 @@ public:
     static FCDECL2(void, UpdateLoaderOptimization, AppDomainBaseObject* refThisUNSAFE, DWORD optimization);
 #endif // FEATURE_LOADER_OPTIMIZATION
 
-    static FCDECL12(Object*, CreateDynamicAssembly, AppDomainBaseObject* refThisUNSAFE, AssemblyNameBaseObject* assemblyNameUNSAFE, Object* identityUNSAFE, StackCrawlMark* stackMark, Object* requiredPsetUNSAFE, Object* optionalPsetUNSAFE, Object* refusedPsetUNSAFE, U1Array* securityRulesBlobUNSAFE, U1Array* aptcaBlobUNSAFE, INT32 access, INT32 flags, SecurityContextSource securityContextSource);
+    static FCDECL9(Object*, CreateDynamicAssembly, AppDomainBaseObject* refThisUNSAFE, AssemblyNameBaseObject* assemblyNameUNSAFE, Object* identityUNSAFE, StackCrawlMark* stackMark, U1Array* securityRulesBlobUNSAFE, U1Array* aptcaBlobUNSAFE, INT32 access, INT32 flags, SecurityContextSource securityContextSource);
 #ifdef FEATURE_APPDOMAINMANAGER_INITOPTIONS
     static FCDECL0(FC_BOOL_RET, HasHost);
 #endif // FEATURE_APPDOMAINMANAGER_INITOPTIONS
index b3e7611..2db3e23 100644 (file)
@@ -924,23 +924,6 @@ Assembly *Assembly::CreateDynamic(AppDomain *pDomain, CreateDynamicAssemblyArgs
     }
 
     // Start loading process
-
-#ifdef FEATURE_CAS_POLICY
-    // Get the security descriptor for the assembly.
-    IAssemblySecurityDescriptor *pSecDesc = pDomainAssembly->GetSecurityDescriptor();
-
-    // Propagate identity and permission request information into the assembly's
-    // security descriptor. Then when policy is resolved we'll end up with the
-    // correct grant set.
-    // If identity has not been provided then the caller's assembly will be
-    // calculated instead and we'll just copy the granted permissions from the
-    // caller to the new assembly and mark policy as resolved (done
-    // automatically by SetGrantedPermissionSet).
-    pSecDesc->SetRequestedPermissionSet(args->requiredPset,
-                                        args->optionalPset,
-                                        args->refusedPset);
-#endif // FEATURE_CAS_POLICY
-
     {
         // Create a concrete assembly
         // (!Do not remove scoping brace: order is important here: the Assembly holder must destruct before the AllocMemTracker!)
index bcd36b9..54bb03d 100644 (file)
@@ -73,9 +73,6 @@ enum DynamicAssemblyFlags
 struct CreateDynamicAssemblyArgsGC
 {
     APPDOMAINREF    refThis;
-    OBJECTREF       refusedPset;
-    OBJECTREF       optionalPset;
-    OBJECTREF       requiredPset;
     OBJECTREF       identity;
     ASSEMBLYNAMEREF assemblyName;
     U1ARRAYREF      securityRulesBlob;
index aa8b159..b486687 100644 (file)
@@ -52,9 +52,8 @@ struct SharedState
     OBJECTHANDLE    m_Threadable;
     OBJECTHANDLE    m_ThreadStartArg;
     Thread         *m_Internal;
-    OBJECTHANDLE    m_Principal;
 
-    SharedState(OBJECTREF threadable, OBJECTREF threadStartArg, Thread *internal, OBJECTREF principal)
+    SharedState(OBJECTREF threadable, OBJECTREF threadStartArg, Thread *internal)
     {
         CONTRACTL
         {
@@ -71,8 +70,6 @@ struct SharedState
         m_ThreadStartArg = ad->CreateHandle(threadStartArg);
 
         m_Internal = internal;
-
-        m_Principal = ad->CreateHandle(principal);
     }
 
     ~SharedState()
@@ -95,7 +92,6 @@ struct SharedState
         {
             DestroyHandle(m_Threadable);
             DestroyHandle(m_ThreadStartArg);
-            DestroyHandle(m_Principal);
         }
     }
 };
@@ -230,7 +226,6 @@ void ThreadNative::KickOffThread_Worker(LPVOID ptr)
     // we are saving the delagate and result primarily for debugging
     struct _gc
     {
-        OBJECTREF orPrincipal;
         OBJECTREF orThreadStartArg;
         OBJECTREF orDelegate;
         OBJECTREF orResult;
@@ -244,22 +239,6 @@ void ThreadNative::KickOffThread_Worker(LPVOID ptr)
     GCPROTECT_BEGIN(gc);
     BEGIN_SO_INTOLERANT_CODE(pThread);
 
-    gc.orPrincipal = ObjectFromHandle(args->share->m_Principal);
-
-#ifdef FEATURE_IMPERSONATION
-    // Push the initial security principal object (if any) onto the
-    // managed thread.
-    if (gc.orPrincipal != NULL)
-    {
-        gc.orThread = args->pThread->GetExposedObject();
-        MethodDescCallSite setPrincipalInternal(METHOD__THREAD__SET_PRINCIPAL_INTERNAL, &gc.orThread);
-        ARG_SLOT argsToSetPrincipal[2];
-        argsToSetPrincipal[0] = ObjToArgSlot(gc.orThread);
-        argsToSetPrincipal[1] = ObjToArgSlot(gc.orPrincipal);
-        setPrincipalInternal.Call(argsToSetPrincipal);
-    }
-#endif
-
     gc.orDelegate = ObjectFromHandle(args->share->m_Threadable);
     gc.orThreadStartArg = ObjectFromHandle(args->share->m_ThreadStartArg);
 
@@ -434,20 +413,20 @@ ULONG __stdcall ThreadNative::KickOffThread(void* pass)
 }
 
 
-FCIMPL3(void, ThreadNative::Start, ThreadBaseObject* pThisUNSAFE, Object* pPrincipalUNSAFE, StackCrawlMark* pStackMark)
+FCIMPL2(void, ThreadNative::Start, ThreadBaseObject* pThisUNSAFE, StackCrawlMark* pStackMark)
 {
     FCALL_CONTRACT;
 
     HELPER_METHOD_FRAME_BEGIN_NOPOLL();
 
-    StartInner(pThisUNSAFE, pPrincipalUNSAFE, pStackMark);
+    StartInner(pThisUNSAFE, pStackMark);
 
     HELPER_METHOD_FRAME_END_POLL();
 }
 FCIMPLEND
 
 // Start up a thread, which by now should be in the ThreadStore's Unstarted list.
-void ThreadNative::StartInner(ThreadBaseObject* pThisUNSAFE, Object* pPrincipalUNSAFE, StackCrawlMark* pStackMark)
+void ThreadNative::StartInner(ThreadBaseObject* pThisUNSAFE, StackCrawlMark* pStackMark)
 {
     CONTRACTL
     {
@@ -459,11 +438,9 @@ void ThreadNative::StartInner(ThreadBaseObject* pThisUNSAFE, Object* pPrincipalU
 
     struct _gc
     {
-        OBJECTREF       pPrincipal;
         THREADBASEREF   pThis;
     } gc;
 
-    gc.pPrincipal  = (OBJECTREF) pPrincipalUNSAFE;
     gc.pThis       = (THREADBASEREF) pThisUNSAFE;
 
     GCPROTECT_BEGIN(gc);
@@ -498,7 +475,7 @@ void ThreadNative::StartInner(ThreadBaseObject* pThisUNSAFE, Object* pPrincipalU
 
         // Allocate this away from our stack, so we can unwind without affecting
         // KickOffThread.  It is inside a GCFrame, so we can enable GC now.
-        NewHolder<SharedState> share(new SharedState(threadable, threadStartArg, pNewThread, gc.pPrincipal));
+        NewHolder<SharedState> share(new SharedState(threadable, threadStartArg, pNewThread));
 
         pNewThread->IncExternalCount();
 
index 65ec212..d9c2def 100644 (file)
@@ -64,11 +64,11 @@ public:
     static LPVOID F_CALL_CONV FastGetCurrentThread();
     static LPVOID F_CALL_CONV FastGetDomain();
 
-    static void StartInner(ThreadBaseObject* pThisUNSAFE, Object* pPrincipalUNSAFE, StackCrawlMark* pStackMark);
+    static void StartInner(ThreadBaseObject* pThisUNSAFE, StackCrawlMark* pStackMark);
 
     static FCDECL1(void, Abort, ThreadBaseObject* pThis);
     static FCDECL1(void, ResetAbort, ThreadBaseObject* pThis);
-    static FCDECL3(void,    Start,             ThreadBaseObject* pThisUNSAFE, Object* pPrincipalUNSAFE, StackCrawlMark* pStackMark);
+    static FCDECL2(void,    Start,             ThreadBaseObject* pThisUNSAFE, StackCrawlMark* pStackMark);
 #ifndef FEATURE_CORECLR
     static FCDECL1(void,    Suspend,           ThreadBaseObject* pThisUNSAFE);
     static FCDECL1(void,    Resume,            ThreadBaseObject* pThisUNSAFE);
index da02515..3f3cb38 100644 (file)
@@ -334,8 +334,6 @@ public:
 #ifdef FEATURE_CAS_POLICY
     virtual HRESULT LoadSignature( COR_TRUST **ppSignature = NULL) = 0;
 
-    virtual void SetRequestedPermissionSet(OBJECTREF RequiredPermissionSet, OBJECTREF OptionalPermissionSet, OBJECTREF DeniedPermissionSet) = 0;
-
     virtual void SetAdditionalEvidence(OBJECTREF evidence) = 0;
     virtual BOOL HasAdditionalEvidence() = 0;
     virtual OBJECTREF GetAdditionalEvidence()  = 0;
index b5a412e..715d956 100644 (file)
@@ -34,82 +34,6 @@ AssemblySecurityDescriptor::AssemblySecurityDescriptor(AppDomain *pDomain, Domai
     } CONTRACTL_END;
 }
 
-#ifdef FEATURE_CAS_POLICY
-OBJECTREF AssemblySecurityDescriptor::GetRequestedPermissionSet(OBJECTREF *pOptionalPermissionSet,
-                                                                OBJECTREF *pDeniedPermissionSet)
-{
-    CONTRACTL
-    {
-        THROWS;
-        GC_TRIGGERS;
-        MODE_COOPERATIVE;
-        PRECONDITION(m_pAppDomain == GetAppDomain());
-        PRECONDITION(CheckPointer(pOptionalPermissionSet));
-        PRECONDITION(CheckPointer(pDeniedPermissionSet));
-        PRECONDITION(m_pAppDomain->GetSecurityDescriptor()->IsLegacyCasPolicyEnabled());
-        INJECT_FAULT(COMPlusThrowOM(););
-    }
-    CONTRACTL_END;
-
-    OBJECTREF req = NULL;
-    GCPROTECT_BEGIN(req);
-
-    if (!IsAssemblyRequestsComputed())
-    {
-        ReleaseHolder<IMDInternalImport> pImport (m_pAssem->GetFile()->GetMDImportWithRef());
-
-        // Try to load permission requests from assembly first.
-        SecurityAttributes::LoadPermissionRequestsFromAssembly(pImport,
-                                                               &req,
-                                                               pOptionalPermissionSet,
-                                                               pDeniedPermissionSet);
-
-        SetRequestedPermissionSet(req, *pOptionalPermissionSet, *pDeniedPermissionSet);
-    }
-    else
-    {
-        *pOptionalPermissionSet = ObjectFromLazyHandle(m_hOptionalPermissionSet, m_pLoaderAllocator);
-        *pDeniedPermissionSet = ObjectFromLazyHandle(m_hDeniedPermissionSet, m_pLoaderAllocator);
-        req = ObjectFromLazyHandle(m_hRequiredPermissionSet, m_pLoaderAllocator);
-    }
-
-    GCPROTECT_END();
-    return req;
-}
-
-void AssemblySecurityDescriptor::SetRequestedPermissionSet(OBJECTREF RequiredPermissionSet,
-                                                                  OBJECTREF OptionalPermissionSet,
-                                                                  OBJECTREF DeniedPermissionSet)
-{
-    CONTRACTL
-    {
-        THROWS;
-        GC_TRIGGERS;
-        MODE_COOPERATIVE;
-    }
-    CONTRACTL_END;
-
-    struct _gc
-    {
-        OBJECTREF RequiredPermissionSet;
-        OBJECTREF OptionalPermissionSet;
-        OBJECTREF DeniedPermissionSet;
-    } gc;
-
-    gc.RequiredPermissionSet = RequiredPermissionSet;
-    gc.OptionalPermissionSet = OptionalPermissionSet;
-    gc.DeniedPermissionSet = DeniedPermissionSet;
-
-    GCPROTECT_BEGIN(gc);
-    StoreObjectInLazyHandle(m_hRequiredPermissionSet, gc.RequiredPermissionSet, m_pLoaderAllocator);
-    StoreObjectInLazyHandle(m_hOptionalPermissionSet, gc.OptionalPermissionSet, m_pLoaderAllocator);
-    StoreObjectInLazyHandle(m_hDeniedPermissionSet, gc.DeniedPermissionSet, m_pLoaderAllocator);
-    GCPROTECT_END();
-
-    m_fAssemblyRequestsComputed = TRUE;
-}
-#endif // FEATURE_CAS_POLICY
-
 //
 // This method will return TRUE if this assembly is allowed to skip verification.
 //
index 15bc83e..4ba65eb 100644 (file)
@@ -115,10 +115,6 @@ public:
 
     OBJECTREF GetRequestedPermissionSet(OBJECTREF *pOptionalPermissionSet, OBJECTREF *pDeniedPermissionSet);
 
-    virtual void SetRequestedPermissionSet(OBJECTREF RequiredPermissionSet,
-                                          OBJECTREF OptionalPermissionSet,
-                                          OBJECTREF DeniedPermissionSet);
-
 #ifndef DACCESS_COMPILE
     virtual void SetAdditionalEvidence(OBJECTREF evidence);
     virtual BOOL HasAdditionalEvidence();