diff options
author | Jeremy Kuhne <jeremy.kuhne@microsoft.com> | 2016-12-09 13:42:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-09 13:42:16 -0800 |
commit | 345e201f027eb35a7a01e1714afe36b831b6f1e3 (patch) | |
tree | 37e8a4f94f8d8b4f77c0fefc0812b411a5114559 /src/mscorlib/src/System/Runtime/GcSettings.cs | |
parent | d034981c78112c8703d3528e8ef8efdb36d68584 (diff) | |
download | coreclr-345e201f027eb35a7a01e1714afe36b831b6f1e3.tar.gz coreclr-345e201f027eb35a7a01e1714afe36b831b6f1e3.tar.bz2 coreclr-345e201f027eb35a7a01e1714afe36b831b6f1e3.zip |
Strip some security related attributes (#8571)
Strips SecurityCritical, SecuritySafeCritical, SecurityPermission,
EnvironmentPermission, and PermissionSet attributes.
Also removes empty defines these left behind.
Patterns used:
^.*\[(System\.Security\.)?SecurityCritical\](\s*//.*|\s*)$[\r\n]*
^.*#if FEATURE_CORECLR[\s\r\n]*(#else)?[\s\r\n]*#endif.*[\r\n]*
^.*\[(System\.Security\.Permissions\.)?SecurityPermission(Attribute)?\([^)]*\)\](\s*//.*|\s*)$[\r\n]*
Diffstat (limited to 'src/mscorlib/src/System/Runtime/GcSettings.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/GcSettings.cs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mscorlib/src/System/Runtime/GcSettings.cs b/src/mscorlib/src/System/Runtime/GcSettings.cs index 5b4be27757..fc70183508 100644 --- a/src/mscorlib/src/System/Runtime/GcSettings.cs +++ b/src/mscorlib/src/System/Runtime/GcSettings.cs @@ -40,7 +40,6 @@ namespace System.Runtime { public static GCLatencyMode LatencyMode { - [System.Security.SecuritySafeCritical] // auto-generated [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] get { @@ -48,7 +47,6 @@ namespace System.Runtime { } // We don't want to allow this API when hosted. - [System.Security.SecurityCritical] // auto-generated_required [HostProtection(MayLeakOnAbort = true)] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] set @@ -66,7 +64,6 @@ namespace System.Runtime { public static GCLargeObjectHeapCompactionMode LargeObjectHeapCompactionMode { - [System.Security.SecuritySafeCritical] // auto-generated [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] get { @@ -74,7 +71,6 @@ namespace System.Runtime { } // We don't want to allow this API when hosted. - [System.Security.SecurityCritical] // auto-generated_required [HostProtection(MayLeakOnAbort = true)] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] set @@ -92,7 +88,6 @@ namespace System.Runtime { public static bool IsServerGC { - [System.Security.SecuritySafeCritical] // auto-generated get { return GC.IsServerGC(); } |