Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,12 +668,14 @@ namespace NativeMsh
// NOTE: The names must not include the .dll extension because it will be added programmatically.
static PCSTR trustedAssemblies[] =
{
"getfilesiginforedistwrapper",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

Copy link
Member Author

@daxian-dbw daxian-dbw Nov 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new list is generated from the trace output of pwsh.exe (the min-size package, so WPF things are not included) by setting the environment variable COREHOST_TRACE beforehand.
For this specific one, I don't know where it's pulled from.

"Markdig.Signed",
"Microsoft.ApplicationInsights",
"Microsoft.Bcl.AsyncInterfaces",
"Microsoft.CodeAnalysis",
"Microsoft.CodeAnalysis.CSharp",
"Microsoft.CSharp",
"Microsoft.DiaSymReader.Native.amd64",
"Microsoft.Extensions.ObjectPool",
"Microsoft.Management.Infrastructure",
"Microsoft.Management.Infrastructure.CimCmdlets",
"Microsoft.Management.Infrastructure.Native",
Expand All @@ -698,7 +700,6 @@ namespace NativeMsh
"netstandard",
"Newtonsoft.Json",
"NJsonSchema",
"PowerShell.Core.Instrumentation",
"System",
"System.AppContext",
"System.Buffers",
Expand Down Expand Up @@ -730,6 +731,7 @@ namespace NativeMsh
"System.Diagnostics.Debug",
"System.Diagnostics.DiagnosticSource",
"System.Diagnostics.EventLog",
"System.Diagnostics.EventLog.Messages",
"System.Diagnostics.FileVersionInfo",
"System.Diagnostics.PerformanceCounter",
"System.Diagnostics.Process",
Expand All @@ -746,6 +748,7 @@ namespace NativeMsh
"System.Drawing.Primitives",
"System.Dynamic.Runtime",
"System.Formats.Asn1",
"System.Formats.Tar",
"System.Globalization",
"System.Globalization.Calendars",
"System.Globalization.Extensions",
Expand Down Expand Up @@ -774,7 +777,6 @@ namespace NativeMsh
"System.Management.Automation",
"System.Memory",
"System.Net",
"System.Net.Connections",
"System.Net.Http",
"System.Net.Http.Json",
"System.Net.Http.WinHttpHandler",
Expand All @@ -784,6 +786,7 @@ namespace NativeMsh
"System.Net.NetworkInformation",
"System.Net.Ping",
"System.Net.Primitives",
"System.Net.Quic",
"System.Net.Requests",
"System.Net.Security",
"System.Net.ServicePoint",
Expand Down Expand Up @@ -822,8 +825,8 @@ namespace NativeMsh
"System.Runtime.Extensions",
"System.Runtime.Handles",
"System.Runtime.InteropServices",
"System.Runtime.InteropServices.JavaScript",
"System.Runtime.InteropServices.RuntimeInformation",
"System.Runtime.InteropServices.WindowsRuntime",
"System.Runtime.Intrinsics",
"System.Runtime.Loader",
"System.Runtime.Numerics",
Expand Down Expand Up @@ -860,6 +863,7 @@ namespace NativeMsh
"System.ServiceModel.Web",
"System.ServiceProcess",
"System.ServiceProcess.ServiceController",
"System.Speech",
"System.Text.Encoding",
"System.Text.Encoding.CodePages",
"System.Text.Encoding.Extensions",
Expand All @@ -882,9 +886,9 @@ namespace NativeMsh
"System.ValueTuple",
"System.Web",
"System.Web.HttpUtility",
"System.Web.Services.Description",
"System.Windows",
"System.Windows.Extensions",
"System.Windows.Forms",
"System.Xml",
"System.Xml.Linq",
"System.Xml.ReaderWriter",
Expand Down