elastic / elastic/beats

[Filebeat] Unable to set noexec on /tmp

Open
#44,797 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.