Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934513 - sys-apps/systemd-utils-256: systemd-tmpfiles will remove /home on --purge
Summary: sys-apps/systemd-utils-256: systemd-tmpfiles will remove /home on --purge
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 14:24 UTC by MaratIK
Modified: 2024-06-18 16:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MaratIK 2024-06-18 14:24:30 UTC
It is found that "systemd-tmpfiles --purge" will delete /home in systemd 256.

See https://mathstodon.xyz/@bremner/112615591101488528

Reproducible: Didn't try
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-18 15:57:54 UTC
While I think it's a bit silly that it exists, it's only a bug in that "--purge does what it's documented to do, but has no "are you sure?" question". There's a lot of destructive commands you can run. It's a new option.

The question is therefore if we want to just delete the /home tmpfiles entry to avoid the risk of people running it and not realising what it does.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-18 16:03:09 UTC
I think we could probably delete it at least for systemd-utils, given it's unlikely people will be doing the "blank system" tmpfiles usecase there.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-18 16:04:05 UTC
Lennart's https://github.com/systemd/systemd/pull/33383 PR is queued for backporting to 256, so I don't think we need to do anything here (256 isn't even packaged yet).
Comment 4 Mike Gilbert gentoo-dev 2024-06-18 16:06:53 UTC
I will make a note to check for that commit when I get around to packaging 256.x.