I was also curious, so did a little digging and found:
Which handily also included a link to the documentation:
Using /tmp/ and /var/tmp/ Safely
Code:
pi@rpi5nvme:~ $ cat /usr/lib/systemd/system/tmp.mount# SPDX-License-Identifier: LGPL-2.1-or-later## This file is part of systemd.## systemd is free software; you can redistribute it and/or modify it# under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2.1 of the License, or# (at your option) any later version.[Unit]Description=Temporary Directory /tmpDocumentation=https://systemd.io/TEMPORARY_DIRECTORIESDocumentation=man:file-hierarchy(7)Documentation=https://systemd.io/API_FILE_SYSTEMSConditionPathIsSymbolicLink=!/tmpDefaultDependencies=noConflicts=umount.targetBefore=local-fs.target umount.targetAfter=swap.target[Mount]What=tmpfsWhere=/tmpType=tmpfsOptions=mode=1777,strictatime,nosuid,nodev,size=50%%,nr_inodes=1mUsing /tmp/ and /var/tmp/ Safely
Statistics: Posted by phattmatt — Sun Feb 22, 2026 10:59 pm