Skip to content

Default path of StateDir should be locked for preventing automatic clean-up by systemd-tmpfiles. #185

@haruo31

Description

@haruo31

rootlesskit creates /tmp/rootlesskitXXXX directory if rootlesskit is launched without --state-dir option. But files in StateDir have no protection for automatic cleanup from systemd-tmpfiles. It could be lost *.sock files unexpectedly.

the systemd documentation describes how to protect files from automatic clean-up. (I suppose the number 3 is suitable for rootlesskit.)
https://systemd.io/TEMPORARY_DIRECTORIES/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions