[Filebeat] Unable to set noexec on /tmp
Open
bug
Stalled
Team:Elastic-Agent-Control-Plane
- Dominant language
- Go
- Stars
- 12.7k
- Forks
- 5k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 364
Description
Users are currently unable to set noexec on `/tmp` for a *nix OS as filebeat diagnostics use the OS's default temp directory when gathering the registry.
See
https://github.com/elastic/beats/blob/0678f4d96212ac968fc90596e60475ed2f3979e1/filebeat/beater/diagnostics.go#L78
We should change this to a directory that can be supplied through some other means.
For the elastic-agent we have `paths.TempDir`, we should use something similar for this creation call.
Contributor guide
Assessment
This issue has not been assessed yet.