forked from Velocidex/velociraptor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark timed out exports in the GUI (Velocidex#3315)
This makes it clear when the export has timed out. Also includes some bugfixes. Fixes: Velocidex#3313 Velocidex#3277 Velocidex#3267 Velocidex#3275
- Loading branch information
Showing
38 changed files
with
472 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//go:build darwin && !cgo | ||
// +build darwin,!cgo | ||
|
||
package process | ||
|
||
import ( | ||
"errors" | ||
|
||
"www.velocidex.com/golang/velociraptor/accessors" | ||
) | ||
|
||
var ( | ||
notSupportedError = errors.New("ProcessAccessor: This binary is not build with cgo support. Process access not enabled.") | ||
) | ||
|
||
func (self *ProcessAccessor) OpenWithOSPath( | ||
path *accessors.OSPath) (accessors.ReadSeekCloser, error) { | ||
return nil, notSupportedError | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package file_store | ||
|
||
import ( | ||
"sync" | ||
|
||
config_proto "www.velocidex.com/golang/velociraptor/config/proto" | ||
"www.velocidex.com/golang/velociraptor/file_store/api" | ||
) | ||
|
||
// Flush all the filestores if needed. Not all filestore | ||
// implementations need to be flushed, so this function will retun | ||
// immediately if not required. If the filestore does need to be | ||
// flushed this operation may be expensive so it should only be done | ||
// when it is important to have data immediately visible. | ||
func FlushFilestore(config_obj *config_proto.Config) error { | ||
var wg sync.WaitGroup | ||
defer wg.Wait() | ||
|
||
file_store_factory := GetFileStore(config_obj) | ||
flusher, ok := file_store_factory.(api.Flusher) | ||
|
||
if ok { | ||
wg.Add(1) | ||
go func() { | ||
defer wg.Done() | ||
flusher.Flush() | ||
}() | ||
} | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.