Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.
This repository was archived by the owner on May 17, 2019. It is now read-only.

How to controll the path and permission of '/tmp/sigdump-[0-9]+.log' files at the systemd shutdown. #607

@kuzukami

Description

@kuzukami

I want to fasten permission of files to ensure system security from the CIS view point.

In my setup td-agent 1.3.3 of CentOS7, '/tmp/sigdump-[0-9]+.log' are unexpectedly dumped on every shudown of systemd td-agentd service.
Furthermore, the almost fully opened permission of sigdump files (666 on my environment) cannot be controlled by either the 'UMask' setting or the ' file_permission' setting of configuration file. (relation? : fluent/fluentd#1152 )

As far as I read the fluentd document, the sigdump files are written (only?) if the fluentd receives the SIGCONT signal.
If the implementation of the sigdump behavior has no bug, the descriptions below could be appended in the document.

  1. the event of dumping sigdump in the standard setup of td-agent
  2. how to control the path of sigdump file. env SIGDUMP_PATH? (https://github.com/frsyuki/sigdump/blob/master/lib/sigdump.rb')
  3. how to control the permission of sigdump file. ( I cannot found the solution. )
  4. how to remove or suppress the sigdump files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions