Skip to content

Commit 2855e04

Browse files
committed
seccomp: allow clone3 syscall for x86
clone3 is a linux syscall that is now used by glibc starting version 2.34. It is used when pthread_create() gets called. Current seccomp filters do not allow this syscall leading to crashes like runtime/cgo: pthread_create failed: Operation not permitted See elastic/apm-server#6238 for more details
1 parent b891ce2 commit 2855e04

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
211211
as gauges (rather than counters). {pull}22877[22877]
212212
- Beats dashboards use custom index when `setup.dashboards.index` is set. {issue}21232[21232] {pull}27901[27901]
213213
- Fix handling of float data types within processors. {issue}28279[28279] {pull}28280[28280]
214+
- Allow `clone3` syscall in seccomp filters. {pull}28117[28117]
214215

215216
*Auditbeat*
216217

libbeat/common/seccomp/policy_linux_386.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func init() {
3535
"chown",
3636
"clock_gettime",
3737
"clone",
38+
"clone3",
3839
"close",
3940
"dup",
4041
"dup2",

libbeat/common/seccomp/policy_linux_amd64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func init() {
3838
"chown",
3939
"clock_gettime",
4040
"clone",
41+
"clone3",
4142
"close",
4243
"connect",
4344
"dup",

0 commit comments

Comments
 (0)