Skip to content

Commit

Permalink
System/socket: Support kernel_clone() replacement for _do_fork() (#29744
Browse files Browse the repository at this point in the history
)

Updates the system/socket dataset to support kernels 5.10+ where the _do_fork kernel function
is replaced by kernel_clone. This was preventing Auditbeat to start.

(cherry picked from commit 2874b62)
  • Loading branch information
adriansr authored and mergify-bot committed Jan 8, 2022
1 parent e8efb3c commit e6cf7f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d

*Auditbeat*

- system/package: Fix parsing of Installed-Size field of DEB packages. {issue}16661[16661] {pull}17188[17188]
- system module: Fix panic during initialisation when /proc/stat can't be read. {pull}17569[17569]
- system/package: Fix an error that can occur while trying to persist package metadata. {issue}18536[18536] {pull}18887[18887]
- system/socket: Fix bugs leading to wrong process being attributed to flows. {pull}29166[29166] {issue}17165[17165]
- system/socket: Fix process name and arg truncation for long names, paths and args lists. {issue}24667[24667] {pull}29410[29410]
- system/socket: Fix startup errors on newer 5.x kernels due to missing _do_fork function. {issue}29607[29607] {pull}29744[29744]

*Filebeat*


Expand Down
2 changes: 1 addition & 1 deletion x-pack/auditbeat/module/system/socket/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var functionAlternatives = map[string][]string{
"SYS_EXECVE": syscallAlternatives("execve"),
"SYS_GETTIMEOFDAY": syscallAlternatives("gettimeofday"),
"SYS_UNAME": syscallAlternatives("newuname"),
"DO_FORK": {"_do_fork", "do_fork"},
"DO_FORK": {"_do_fork", "do_fork", "kernel_clone"},
}

func syscallAlternatives(syscall string) []string {
Expand Down

0 comments on commit e6cf7f2

Please sign in to comment.