Bug#966621: Make /tmp/ a tmpfs and cleanup /var/tmp/ on a timer by default [was: Re: systemd: tmpfiles.d not cleaning /var/tmp by default]

Luca Boccassi bluca at debian.org
Sun May 5 21:04:35 BST 2024


On Tue, 5 Jul 2022 19:42:37 +0200 Michael Biebl <biebl at debian.org>
wrote:
> 
> Hi Eric
> 
> On Fri, 31 Jul 2020 15:12:48 +0000 Eric Desrochers 
> <eric.desrochers at canonical.com> wrote:
> > Package: systemd
> > Version: 245.7-1
> > Severity: normal
> > 
> > Dear Maintainer,
> > 
> > Debian systemd implementation does not clean
> > /var/tmp by default.
> > 
> > * quilt patch:
> > d/p/debian/Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-
defaul.patch
> > 
> > * systemd-245.7/tmpfiles.d/tmp.conf:
> > #q /var/tmp 1777 root root 30d
> > 
> > The patch exist in Debian since 2012.
> > 
> > The topic has been discussed and a few suggestion has been put on
the
> > table in the following Ubuntu bug:
https://launchpad.net/bugs/1870585
> > 
> > I fill this bug today to start a conversation.
> 
> I haven't received any further input from your side.
> Are you still interested in this issue or not?
> I wonder where to go from here and what to do about this bug report.

I think it's been long enough, and for Trixie we should bring the
defaults in line with upstream and other distributions, which means:

- /tmp/ is a tmpfs
- /var/tmp/ is cleaned up on a timer

Hence, I intend to apply these changes in the next src:systemd upload
to unstable, probably next week.

This will be mentioned in NEWS (and I guess in the release notes when
the time comes), together with the instructions to override for anybody
wanting to keep the old behaviour, which is as trivial as:

systemctl mask tmp.mount (or touch /etc/systemd/system/tmp.mount)
touch /etc/tmpfiles.d/tmp.conf

for the former and the latter respectively.

In case anybody is aware of packages/programs needing an update to cope
with these changes, or any other issue, please let me know and I will
file bugs.

-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20240505/77d64229/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list