From db95e161e941091b5419f699f35421c0b379fa33 Mon Sep 17 00:00:00 2001 From: kruskal <99559985+kruskall@users.noreply.github.com> Date: Sat, 28 Sep 2024 17:34:23 +0200 Subject: [PATCH] fix(auditbeat): use correct filetimes field names in some systems fix compile errors on non-linux and openbsd systems syscall.Stat_t field names is not consistent in different goos causing compile errors on openbsd and non-linux systems --- .../file_integrity/{fileinfo_linux.go => filetimes_tim.go} | 2 +- .../file_integrity/{fileinfo_bsd.go => filetimes_timespec.go} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename auditbeat/module/file_integrity/{fileinfo_linux.go => filetimes_tim.go} (94%) rename auditbeat/module/file_integrity/{fileinfo_bsd.go => filetimes_timespec.go} (95%) diff --git a/auditbeat/module/file_integrity/fileinfo_linux.go b/auditbeat/module/file_integrity/filetimes_tim.go similarity index 94% rename from auditbeat/module/file_integrity/fileinfo_linux.go rename to auditbeat/module/file_integrity/filetimes_tim.go index a7f9d7a8cdad..afd6032155b8 100644 --- a/auditbeat/module/file_integrity/fileinfo_linux.go +++ b/auditbeat/module/file_integrity/filetimes_tim.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -//go:build linux +//go:build linux || openbsd || dragonfly || aix || solaris package file_integrity diff --git a/auditbeat/module/file_integrity/fileinfo_bsd.go b/auditbeat/module/file_integrity/filetimes_timespec.go similarity index 95% rename from auditbeat/module/file_integrity/fileinfo_bsd.go rename to auditbeat/module/file_integrity/filetimes_timespec.go index ad0cb5c5112d..c95670207a25 100644 --- a/auditbeat/module/file_integrity/fileinfo_bsd.go +++ b/auditbeat/module/file_integrity/filetimes_timespec.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -//go:build freebsd || openbsd || netbsd || darwin +//go:build freebsd || netbsd || darwin package file_integrity