Skip to content

Commit 9347192

Browse files
authored
Add normalization for exit_group syscall (elastic#149)
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.
1 parent f3dbcfd commit 9347192

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
77

88
### Added
99

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

1214
- Update syscall and architecture tables. [#147](https://github.com/elastic/go-libaudit/pull/147)

aucoalesce/normalizations.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,15 @@ normalizations:
548548
ecs:
549549
<<: *ecs-process
550550
type: change
551+
- action: end
552+
object:
553+
what: process
554+
how: syscall
555+
syscalls:
556+
# exit_group - exit all threads in a process
557+
- exit_group
558+
ecs: *ecs-process
559+
type: end
551560

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

0 commit comments

Comments
 (0)