Skip to content

Commit

Permalink
Add CallOnG0 symbol for inspect (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter authored Mar 13, 2024
1 parent 7a5de51 commit dd7efb3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trusted_applet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ func main() {
klog.Exitf("runWithNetworking: %v", err)
}
}

// This forces the linker to keep the symbol present which is necessary for the inspect()
// function in the OS to work.
runtime.CallOnG0()
}

// runWithNetworking should only be called when we have an IP network configured.
Expand Down

0 comments on commit dd7efb3

Please sign in to comment.