Skip to content

Commit

Permalink
[CWS] ensure device and user path are serialized for windows fim even…
Browse files Browse the repository at this point in the history
…ts (#26350)
  • Loading branch information
paulcacheux authored Jun 5, 2024
1 parent 1669607 commit f5c21a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/security/serializers/serializers_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
type FileSerializer struct {
// File path
Path string `json:"path,omitempty"`
// File device path
DevicePath string `json:"device_path,omitempty"`
// File basename
Name string `json:"name,omitempty"`
}
Expand Down Expand Up @@ -115,8 +117,9 @@ func newFileSerializer(fe *model.FileEvent, e *model.Event, _ ...uint64) *FileSe

func newFimFileSerializer(fe *model.FimFileEvent, e *model.Event, _ ...uint64) *FileSerializer {
return &FileSerializer{
Path: e.FieldHandlers.ResolveFimFilePath(e, fe),
Name: e.FieldHandlers.ResolveFimFileBasename(e, fe),
Path: e.FieldHandlers.ResolveFileUserPath(e, fe),
DevicePath: e.FieldHandlers.ResolveFimFilePath(e, fe),
Name: e.FieldHandlers.ResolveFimFileBasename(e, fe),
}
}

Expand Down

0 comments on commit f5c21a0

Please sign in to comment.