Skip to content

Commit

Permalink
Add normalization for exit_group syscall (#149)
Browse files Browse the repository at this point in the history
The exit_group syscall terminates all threads in a process, and is normally
used to exit a process. This normalization adds 'end' action and type to the
process ECS document.
  • Loading branch information
mjwolf authored Jan 22, 2024
1 parent f3dbcfd commit 9347192
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Added

- Add ECS normalization for `exit_group` syscall. [#149](https://github.com/elastic/go-libaudit/pull/149)

### Changed

- Update syscall and architecture tables. [#147](https://github.com/elastic/go-libaudit/pull/147)
Expand Down
10 changes: 9 additions & 1 deletion aucoalesce/normalizations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,15 @@ normalizations:
ecs:
<<: *ecs-process
type: change
- action: end
object:
what: process
how: syscall
syscalls:
# exit_group - exit all threads in a process
- exit_group
ecs: *ecs-process
type: end

# Currently unhandled
# this list comes from parsing linux man pages at https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
Expand Down Expand Up @@ -673,7 +682,6 @@ normalizations:
# acct - switch process accounting on or off
# sigsuspend - wait for a signal
# rt_sigsuspend - wait for a signal
# exit_group - exit all threads in a process
# socket - create an endpoint for communication
# ioctl_userfaultfd - create a file descriptor for handling page faults in user space
# sched_get_priority_max - get static priority range
Expand Down

0 comments on commit 9347192

Please sign in to comment.