Skip to content

Commit

Permalink
fix: build kprobe package and unit-tests only for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Jan 31, 2024
1 parent c985aaf commit d5d9768
Show file tree
Hide file tree
Showing 29 changed files with 58 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/events_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/events_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/events_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/kallsyms_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/path_inotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/path_inotify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/path_mountpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/perf_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/perf_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import "github.com/stretchr/testify/mock"
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/probes.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/probes_fsnotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/file_integrity/kprobes/probes_vfs_getattr.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

//go:build linux

package kprobes

import (
Expand Down

0 comments on commit d5d9768

Please sign in to comment.