mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Disable orbit osquery extensions on Windows (#3705)
* Disable orbit osquery extensions on Windows * Add the same to shell.go
This commit is contained in:
parent
c74d087081
commit
d7e2e33e01
3 changed files with 12 additions and 4 deletions
1
changes/disable-extension-orbit-windows
Normal file
1
changes/disable-extension-orbit-windows
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Disabling orbit osquery extensions on Windows until #3679 is fixed.
|
||||
|
|
@ -366,8 +366,11 @@ func main() {
|
|||
r, _ := osquery.NewRunner(osquerydPath, options...)
|
||||
g.Add(r.Execute, r.Interrupt)
|
||||
|
||||
ext := table.NewRunner(r.ExtensionSocketPath())
|
||||
g.Add(ext.Execute, ext.Interrupt)
|
||||
if runtime.GOOS != "windows" {
|
||||
// We are disabling extensions for Windows until #3679 is fixed.
|
||||
ext := table.NewRunner(r.ExtensionSocketPath())
|
||||
g.Add(ext.Execute, ext.Interrupt)
|
||||
}
|
||||
|
||||
// Install a signal handler
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
|
||||
"github.com/fleetdm/fleet/v4/orbit/pkg/constant"
|
||||
"github.com/fleetdm/fleet/v4/orbit/pkg/osquery"
|
||||
|
|
@ -79,8 +80,11 @@ var shellCommand = &cli.Command{
|
|||
)
|
||||
g.Add(r.Execute, r.Interrupt)
|
||||
|
||||
ext := table.NewRunner(r.ExtensionSocketPath())
|
||||
g.Add(ext.Execute, ext.Interrupt)
|
||||
if runtime.GOOS != "windows" {
|
||||
// We are disabling extensions for Windows until #3679 is fixed.
|
||||
ext := table.NewRunner(r.ExtensionSocketPath())
|
||||
g.Add(ext.Execute, ext.Interrupt)
|
||||
}
|
||||
|
||||
// Install a signal handler
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
|
|
|||
Loading…
Reference in a new issue