Skip to content

[Filebeat] Unable to set noexec on /tmp #44797

@michel-laterman

Description

@michel-laterman

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

f, err := os.CreateTemp("", "filebeat-registry-*.tar")

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions