Skip to content

Commit f02fa32

Browse files
authored
common/seccomp: add rseq syscall (#30620)
rseq syscall is available on glibc >= 2.35, and called when CGO is used. If we don't allow rseq, Beats will eventually crash with an glibc error: `Fatal glibc error: rseq registration failed`. Fixes: #30576
1 parent 91426e9 commit f02fa32

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...main[Check the HEAD dif
4343
- Fix a logging bug when `ssl.verification_mode` was set to `full` or `certificate`, the command `test output` incorrectly logged that TLS was disabled.
4444
- Fix the ability for subcommands to be ran properly from the beats containers. {pull}30452[30452]
4545
- Update docker/distribution dependency library to fix a security issues concerning OCI Manifest Type Confusion Issue. {pull}30462[30462]
46+
- Fixes Beats crashing when glibc >= 2.35 is used {issue}30576[30576]
4647

4748
*Auditbeat*
4849

libbeat/common/seccomp/policy_linux_386.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func init() {
100100
"rename",
101101
"renameat",
102102
"restart_syscall",
103+
"rseq",
103104
"rt_sigaction",
104105
"rt_sigprocmask",
105106
"rt_sigreturn",

libbeat/common/seccomp/policy_linux_amd64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func init() {
112112
"recvmsg",
113113
"rename",
114114
"renameat",
115+
"rseq",
115116
"rt_sigaction",
116117
"rt_sigprocmask",
117118
"rt_sigreturn",

libbeat/common/seccomp/seccomp-profiler-allow.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ mprotect
33
set_robust_list
44
tgkill
55
time
6+
rseq
67

78
# cgo os/user
89
access

0 commit comments

Comments
 (0)