Skip to content

Commit c65f0a3

Browse files
author
Manish Ranjan Mahanta
committed
Moving to VMUtils and static analysis fix
Signed-off-by: Manish Ranjan Mahanta <mmahanta@microsoft.com>
1 parent 8f00207 commit c65f0a3

5 files changed

Lines changed: 350 additions & 282 deletions

File tree

internal/uvm/etw/provider_map.go

Lines changed: 0 additions & 279 deletions
This file was deleted.

internal/uvm/log_wcow.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@ func (uvm *UtilityVM) SetLogSources(ctx context.Context) error {
6464
if wcaps != nil && wcaps.IsLogForwardingSupported() {
6565
// Make a call to the GCS to set the ETW providers
6666

67-
var settings string
6867
// Determines the log sources to be set based on the configuration. If default log sources are enabled,
6968
// we only include them along with user specified log sources.
7069
// For confidential WCOw, we skip the adding guids to the log sources as the sidecar-GCS will verify the
7170
// allowed log sources against policy and append the necessary GUIDs to the ones allowed. Rest are dropped.
7271
// For non-confidential WCOW, we include the GUIDs in the log sources as the hcsshim communicates directly with the inboxGCS.
73-
settings = etw.UpdateEncodedLogSources(uvm.logSources, !uvm.disableDefaultLogSources, !uvm.HasConfidentialPolicy())
72+
settings := etw.UpdateLogSources(ctx, uvm.logSources, !uvm.disableDefaultLogSources, !uvm.HasConfidentialPolicy())
7473

7574
req := guestrequest.LogForwardServiceRPCRequest{
7675
RPCType: guestrequest.RPCModifyServiceSettings,
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
{
3636
"providerName": "Microsoft.Windows.LogForwardService.Provider",
37-
"providerGuid": "396A26FF-FB73-5465-0D17-DD493089623"
37+
"providerGuid": "396a26ff-fb73-5465-0d17-dd4930896239"
3838
},
3939
{
4040
"providerName": "Microsoft.Windows.Security.KeyGuard",

0 commit comments

Comments
 (0)