On Mon, 6 May 2024 at 21:08, Johannes Schauer Marin Rodrigues <jo...@debian.org> wrote: > > Hi, > > Quoting Luca Boccassi (2024-05-06 15:20:08) > > While personal anecdotes and stories can be interesting and amusing in many > > circumstances, I am not really looking for those at this very moment. What I > > am looking for right now is packages or internal infrastructure that need an > > update to cope with these two changes before I upload them, so if you know > > of > > any please do let me know and I'll happily look into it and at least file a > > bug, if not a MR. Thanks. > > mmdebstrap uses $TMPDIR (because that's what Perl's File::Temp uses) and falls > back to /tmp for storing the chroot directories it creates. The modification > times on files in that chroot directory are potentially much older than 10 > days > as they match the timestamps on the packages installed in the chroot. Do I > understand it correctly that with the proposed change and an unfortunate > timing > it can happen that files older than 10 days get removed from a temporary > chroot > directory in /tmp? If yes, how should applications guard against that from > happening?
More specific settings win, so your application can ship its own tmpfiles.d snippet that defines a longer (or infinite) cleanup time for directories under /tmp or /var/tmp.