diff --git a/auditbeat/module/file_integrity/kprobes/errors.go b/auditbeat/module/file_integrity/kprobes/errors.go index 6199a6db9861..f3da8878b1bd 100644 --- a/auditbeat/module/file_integrity/kprobes/errors.go +++ b/auditbeat/module/file_integrity/kprobes/errors.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import "errors" diff --git a/auditbeat/module/file_integrity/kprobes/events.go b/auditbeat/module/file_integrity/kprobes/events.go index 018f392b7171..2ab2b3e1bdb7 100644 --- a/auditbeat/module/file_integrity/kprobes/events.go +++ b/auditbeat/module/file_integrity/kprobes/events.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/events_cache.go b/auditbeat/module/file_integrity/kprobes/events_cache.go index 84f5018da989..e77cd2c68299 100644 --- a/auditbeat/module/file_integrity/kprobes/events_cache.go +++ b/auditbeat/module/file_integrity/kprobes/events_cache.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/events_cache_entry.go b/auditbeat/module/file_integrity/kprobes/events_cache_entry.go index 0c8c3e528a3a..b44b4fe5c41b 100644 --- a/auditbeat/module/file_integrity/kprobes/events_cache_entry.go +++ b/auditbeat/module/file_integrity/kprobes/events_cache_entry.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import "strings" diff --git a/auditbeat/module/file_integrity/kprobes/events_cache_test.go b/auditbeat/module/file_integrity/kprobes/events_cache_test.go index 7c83f964ff1b..00f7afb846b8 100644 --- a/auditbeat/module/file_integrity/kprobes/events_cache_test.go +++ b/auditbeat/module/file_integrity/kprobes/events_cache_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/events_process.go b/auditbeat/module/file_integrity/kprobes/events_process.go index 32691547db2c..d0ba1619647a 100644 --- a/auditbeat/module/file_integrity/kprobes/events_process.go +++ b/auditbeat/module/file_integrity/kprobes/events_process.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/events_process_test.go b/auditbeat/module/file_integrity/kprobes/events_process_test.go index e5aa0d5a914e..1d0b44b2622d 100644 --- a/auditbeat/module/file_integrity/kprobes/events_process_test.go +++ b/auditbeat/module/file_integrity/kprobes/events_process_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/events_test.go b/auditbeat/module/file_integrity/kprobes/events_test.go index a898aecd3958..b39e0621ab52 100644 --- a/auditbeat/module/file_integrity/kprobes/events_test.go +++ b/auditbeat/module/file_integrity/kprobes/events_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/events_verifier.go b/auditbeat/module/file_integrity/kprobes/events_verifier.go index 12f8e33c76f2..a1870736c889 100644 --- a/auditbeat/module/file_integrity/kprobes/events_verifier.go +++ b/auditbeat/module/file_integrity/kprobes/events_verifier.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/events_verifier_test.go b/auditbeat/module/file_integrity/kprobes/events_verifier_test.go index bf9647397f15..4daf1cb9f902 100644 --- a/auditbeat/module/file_integrity/kprobes/events_verifier_test.go +++ b/auditbeat/module/file_integrity/kprobes/events_verifier_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/executor.go b/auditbeat/module/file_integrity/kprobes/executor.go index c026644569e6..d13b517aca85 100644 --- a/auditbeat/module/file_integrity/kprobes/executor.go +++ b/auditbeat/module/file_integrity/kprobes/executor.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/executor_test.go b/auditbeat/module/file_integrity/kprobes/executor_test.go index 3083ccbb0262..7c899074640d 100644 --- a/auditbeat/module/file_integrity/kprobes/executor_test.go +++ b/auditbeat/module/file_integrity/kprobes/executor_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/kallsyms_test.go b/auditbeat/module/file_integrity/kprobes/kallsyms_test.go index d60757afc0f9..22dcb59e5f4c 100644 --- a/auditbeat/module/file_integrity/kprobes/kallsyms_test.go +++ b/auditbeat/module/file_integrity/kprobes/kallsyms_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/monitor.go b/auditbeat/module/file_integrity/kprobes/monitor.go index 7667baad7db2..089e246598cd 100644 --- a/auditbeat/module/file_integrity/kprobes/monitor.go +++ b/auditbeat/module/file_integrity/kprobes/monitor.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/monitor_test.go b/auditbeat/module/file_integrity/kprobes/monitor_test.go index d425284a42dd..a8494d0bbf67 100644 --- a/auditbeat/module/file_integrity/kprobes/monitor_test.go +++ b/auditbeat/module/file_integrity/kprobes/monitor_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/path.go b/auditbeat/module/file_integrity/kprobes/path.go index 1253349c9a42..229603570c9e 100644 --- a/auditbeat/module/file_integrity/kprobes/path.go +++ b/auditbeat/module/file_integrity/kprobes/path.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/path_inotify.go b/auditbeat/module/file_integrity/kprobes/path_inotify.go index 3e4185455f5c..05d483837f4e 100644 --- a/auditbeat/module/file_integrity/kprobes/path_inotify.go +++ b/auditbeat/module/file_integrity/kprobes/path_inotify.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/path_inotify_test.go b/auditbeat/module/file_integrity/kprobes/path_inotify_test.go index fab167c73d62..a5760765d9b5 100644 --- a/auditbeat/module/file_integrity/kprobes/path_inotify_test.go +++ b/auditbeat/module/file_integrity/kprobes/path_inotify_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/path_mountpoint.go b/auditbeat/module/file_integrity/kprobes/path_mountpoint.go index 33ccebca65d1..dc8bfcdde999 100644 --- a/auditbeat/module/file_integrity/kprobes/path_mountpoint.go +++ b/auditbeat/module/file_integrity/kprobes/path_mountpoint.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/path_mountpoint_test.go b/auditbeat/module/file_integrity/kprobes/path_mountpoint_test.go index 314c4a116307..99389d075761 100644 --- a/auditbeat/module/file_integrity/kprobes/path_mountpoint_test.go +++ b/auditbeat/module/file_integrity/kprobes/path_mountpoint_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/path_test.go b/auditbeat/module/file_integrity/kprobes/path_test.go index d1b397cd17f4..ee3871eeab81 100644 --- a/auditbeat/module/file_integrity/kprobes/path_test.go +++ b/auditbeat/module/file_integrity/kprobes/path_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/perf_channel.go b/auditbeat/module/file_integrity/kprobes/perf_channel.go index 46c68f9f788a..a76fe3f2a631 100644 --- a/auditbeat/module/file_integrity/kprobes/perf_channel.go +++ b/auditbeat/module/file_integrity/kprobes/perf_channel.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/perf_channel_test.go b/auditbeat/module/file_integrity/kprobes/perf_channel_test.go index 0d1a3e0d3df8..810bd59bcffc 100644 --- a/auditbeat/module/file_integrity/kprobes/perf_channel_test.go +++ b/auditbeat/module/file_integrity/kprobes/perf_channel_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import "github.com/stretchr/testify/mock" diff --git a/auditbeat/module/file_integrity/kprobes/probes.go b/auditbeat/module/file_integrity/kprobes/probes.go index 431d9fe2e3a2..836dff04cdf1 100644 --- a/auditbeat/module/file_integrity/kprobes/probes.go +++ b/auditbeat/module/file_integrity/kprobes/probes.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/probes_fsnotify.go b/auditbeat/module/file_integrity/kprobes/probes_fsnotify.go index 5badf59f4eb4..f840e891a967 100644 --- a/auditbeat/module/file_integrity/kprobes/probes_fsnotify.go +++ b/auditbeat/module/file_integrity/kprobes/probes_fsnotify.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/probes_fsnotify_nameremove.go b/auditbeat/module/file_integrity/kprobes/probes_fsnotify_nameremove.go index 9ecad77d8f70..3409d8558649 100644 --- a/auditbeat/module/file_integrity/kprobes/probes_fsnotify_nameremove.go +++ b/auditbeat/module/file_integrity/kprobes/probes_fsnotify_nameremove.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/probes_fsnotify_nameremove_test.go b/auditbeat/module/file_integrity/kprobes/probes_fsnotify_nameremove_test.go index aeb047fe6b0e..17e7b3d9f49a 100644 --- a/auditbeat/module/file_integrity/kprobes/probes_fsnotify_nameremove_test.go +++ b/auditbeat/module/file_integrity/kprobes/probes_fsnotify_nameremove_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/probes_fsnotify_parent.go b/auditbeat/module/file_integrity/kprobes/probes_fsnotify_parent.go index f0936ed81af0..505d40f6b08c 100644 --- a/auditbeat/module/file_integrity/kprobes/probes_fsnotify_parent.go +++ b/auditbeat/module/file_integrity/kprobes/probes_fsnotify_parent.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/probes_fsnotify_parent_test.go b/auditbeat/module/file_integrity/kprobes/probes_fsnotify_parent_test.go index 99c0c32957d8..5198cb673cd4 100644 --- a/auditbeat/module/file_integrity/kprobes/probes_fsnotify_parent_test.go +++ b/auditbeat/module/file_integrity/kprobes/probes_fsnotify_parent_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/probes_fsnotify_test.go b/auditbeat/module/file_integrity/kprobes/probes_fsnotify_test.go index 18378b0b9256..ba02cbf46389 100644 --- a/auditbeat/module/file_integrity/kprobes/probes_fsnotify_test.go +++ b/auditbeat/module/file_integrity/kprobes/probes_fsnotify_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/probes_vfs_getattr.go b/auditbeat/module/file_integrity/kprobes/probes_vfs_getattr.go index d5a1a8a7d75e..e115eba45659 100644 --- a/auditbeat/module/file_integrity/kprobes/probes_vfs_getattr.go +++ b/auditbeat/module/file_integrity/kprobes/probes_vfs_getattr.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import ( diff --git a/auditbeat/module/file_integrity/kprobes/probes_vfs_getattr_test.go b/auditbeat/module/file_integrity/kprobes/probes_vfs_getattr_test.go index 215893e81b77..3b9265993169 100644 --- a/auditbeat/module/file_integrity/kprobes/probes_vfs_getattr_test.go +++ b/auditbeat/module/file_integrity/kprobes/probes_vfs_getattr_test.go @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +//go:build linux + package kprobes import (