Skip to content

Commit

Permalink
[7.16](backport #28117) Allow clone3 syscall in seccomp filters (#28330)
Browse files Browse the repository at this point in the history
* seccomp: allow clone3 syscall for x86 (#28117)

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

(cherry picked from commit 82507fd)

Co-authored-by: Arnaud Lefebvre <[email protected]>
Co-authored-by: Jaime Soriano Pastor <[email protected]>
  • Loading branch information
3 people authored Dec 12, 2021
1 parent 9f6ac6f commit 1e1249d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix discovery of Nomad allocations with multiple events during startup. {pull}28700[28700]
- Allows disable pod events enrichment with deployment name {pull}28521[28521]
- Fix `fingerprint` processor to give it access to the `@timestamp` field. {issue}28683[28683]
- Allow `clone3` syscall in seccomp filters. {pull}28117[28117]
- Fix the wrong beat name on monitoring and state endpoint {issue}27755[27755]
- Skip configuration checks in autodiscover for configurations that are already running {pull}29048[29048]
- Fix `decode_json_processor` to always respect `add_error_key` {pull}29107[29107]
Expand Down
1 change: 1 addition & 0 deletions libbeat/common/seccomp/policy_linux_386.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func init() {
"chown",
"clock_gettime",
"clone",
"clone3",
"close",
"dup",
"dup2",
Expand Down
1 change: 1 addition & 0 deletions libbeat/common/seccomp/policy_linux_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func init() {
"chown",
"clock_gettime",
"clone",
"clone3",
"close",
"connect",
"dup",
Expand Down

0 comments on commit 1e1249d

Please sign in to comment.