Skip to content

PrivateTmp= doesn't account for symlinked /tmp #4082

@cgwalters

Description

@cgwalters

Submission type

  • Bug report
  • Request for enhancement (RFE)

systemd version the issue has been seen with

systemd-231-3.fc25.x86_64

tmp.mount has ConditionPathIsSymbolicLink=!/tmp, but if a service specifies PrivateTmp=yes, it will fail for e.g. ostree which uses /tmp -> /sysroot/tmp.

I'm still a bit uncertain about whether to change ostree or systemd (or both) for this. We could move ostree to a model where all of / is a tmpfs, and just bind mount in /usr like bubblewrap is doing. Or teach systemd how to follow symlinks for the case of /tmp.

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