From 8c66d88347fd849b2077c380a01ca74c02334092 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Wed, 14 Oct 2020 14:29:13 -0700 Subject: [PATCH 1/2] Add System.Net.Connections to trusted platform assemblies list --- src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp b/src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp index e2d3345..1522aba 100644 --- a/src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp +++ b/src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp @@ -769,6 +769,7 @@ namespace NativeMsh "System.Management.Automation", "System.Memory", "System.Net", + "System.Net.Connections" "System.Net.Http", "System.Net.Http.WinHttpHandler", "System.Net.HttpListener", From 0e5b99068c701c7c03c1f0549b47feef736f0213 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Thu, 15 Oct 2020 12:01:08 -0700 Subject: [PATCH 2/2] Update trusted platform assemblies list for latest PowerShell release --- .../nativemsh/pwrshcommon/pwrshcommon.cpp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp b/src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp index 1522aba..0218874 100644 --- a/src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp +++ b/src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp @@ -668,7 +668,7 @@ namespace NativeMsh // NOTE: The names must not include the .dll extension because it will be added programmatically. static PCSTR trustedAssemblies[] = { - "Markdig", + "Markdig.Signed", "Microsoft.ApplicationInsights", "Microsoft.CodeAnalysis", "Microsoft.CodeAnalysis.CSharp", @@ -686,6 +686,7 @@ namespace NativeMsh "Microsoft.PowerShell.SDK", "Microsoft.PowerShell.Security", "Microsoft.VisualBasic", + "Microsoft.VisualBasic.Core", "Microsoft.Win32.Primitives", "Microsoft.Win32.Registry", "Microsoft.Win32.Registry.AccessControl", @@ -693,6 +694,7 @@ namespace NativeMsh "Microsoft.WSMan.Management", "Microsoft.WSMan.Runtime", "mscorlib", + "Namotion.Reflection", "netstandard", "Newtonsoft.Json", "NJsonSchema", @@ -709,6 +711,7 @@ namespace NativeMsh "System.ComponentModel", "System.ComponentModel.Annotations", "System.ComponentModel.Composition", + "System.ComponentModel.Composition.Registration", "System.ComponentModel.DataAnnotations", "System.ComponentModel.EventBasedAsync", "System.ComponentModel.Primitives", @@ -721,6 +724,7 @@ namespace NativeMsh "System.Data.Common", "System.Data.DataSetExtensions", "System.Data.Odbc", + "System.Data.OleDb", "System.Data.SqlClient", "System.Diagnostics.Contracts", "System.Diagnostics.Debug", @@ -741,6 +745,7 @@ namespace NativeMsh "System.Drawing.Common", "System.Drawing.Primitives", "System.Dynamic.Runtime", + "System.Formats.Asn1", "System.Globalization", "System.Globalization.Calendars", "System.Globalization.Extensions", @@ -769,8 +774,9 @@ namespace NativeMsh "System.Management.Automation", "System.Memory", "System.Net", - "System.Net.Connections" + "System.Net.Connections", "System.Net.Http", + "System.Net.Http.Json", "System.Net.Http.WinHttpHandler", "System.Net.HttpListener", "System.Net.Mail", @@ -797,6 +803,7 @@ namespace NativeMsh "System.Private.Xml", "System.Private.Xml.Linq", "System.Reflection", + "System.Reflection.Context", "System.Reflection.DispatchProxy", "System.Reflection.Emit", "System.Reflection.Emit.ILGeneration", @@ -817,6 +824,7 @@ namespace NativeMsh "System.Runtime.InteropServices", "System.Runtime.InteropServices.RuntimeInformation", "System.Runtime.InteropServices.WindowsRuntime", + "System.Runtime.Intrinsics", "System.Runtime.Loader", "System.Runtime.Numerics", "System.Runtime.Serialization", @@ -855,9 +863,11 @@ namespace NativeMsh "System.Text.Encoding.CodePages", "System.Text.Encoding.Extensions", "System.Text.Encodings.Web", + "System.Text.Json", "System.Text.RegularExpressions", "System.Threading", "System.Threading.AccessControl", + "System.Threading.Channels", "System.Threading.Overlapped", "System.Threading.Tasks", "System.Threading.Tasks.Dataflow", @@ -872,6 +882,7 @@ namespace NativeMsh "System.Web", "System.Web.HttpUtility", "System.Windows", + "System.Windows.Extensions", "System.Windows.Forms", "System.Xml", "System.Xml.Linq", @@ -881,7 +892,8 @@ namespace NativeMsh "System.Xml.XmlDocument", "System.Xml.XmlSerializer", "System.Xml.XPath", - "System.Xml.XPath.XDocument" + "System.Xml.XPath.XDocument", + "WindowsBase" }; // Define the function pointer for the CLR entry point