mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
An entry with a % in the path was skipped, and files from
distributions have them:
d /run/log/journal/%m 2755 root systemd-journal - -
Expand the specifiers that do not need the OS release or the
architecture: %b, %m, %H, %l, %v, the directories %t, %T, %V, %S, %C,
%L, %h, and the user ones %u, %U, %g, %G. tmpfiles runs as root, so
the last ones are fixed. An entry with any other specifier is still
skipped.
The argument of C, f, F, L, and w entries is expanded too, as in
tmpfiles.d(5). A literal % in such an argument must from now on be
written %%.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2.4 KiB
2.4 KiB
tmpfiles TODO
What tmpfiles lacks compared to tmpfiles.d(5), from a read of
src/tmpfiles.c in November 2026. Ranked: first what Finit's own
files or common packages already rely on, last what few will miss.
- Ages
Finit never runs tmpfiles --clean itself, doc/plugins.md tells the
user to call it from cron.
- Only one number with
s,m,h,d, orwis read. Missing are1d12h,ms,us, the~prefix, and thea,b,c,mselectors for which timestamps to compare - The age is only used for
d,D, ande, and aneentry with a glob in the path is not cleaned
- Specifiers
Missing are the ones for the OS release and the architecture: %a,
%A, %B, %M, %o, %w, and %W. An entry with one of them is
skipped. %T and %V are always /tmp and /var/tmp, they do not
look at $TMPDIR.
- Remaining types and modifiers
L?, andC+, which is read asCzandZonly set the SELinux label whenrestoreconis installedt,Tfor extended attributes andh,Hfor file attributes- Modifiers
-(do not fail),=(remove what is of another type),~(base64 argument), and^(credential as argument) - Quoted paths, a path with a space in it cannot be written
- Command line
Missing options: --prefix, --root, --replace, --dry-run,
--purge, --graceful, and --cat-config. Of these --prefix
is the useful one, for packages that run tmpfiles --create on only
their own paths.
- Smaller things
- Files are processed one directory at a time. tmpfiles.d(5) sorts
all of them by name, whatever directory they are in, so
00-x.confin/etcshould run before50-y.confin/usr/lib aandAhandle an ACL of at most 32 entries, a path with more is left as it is, with a warning- A new
ffile without a mode gets what the umask leaves of 0666, it should be 0644 - A
doreentry for a path that is a link to a directory warns that mode and owner could not be set - An age so large that it overflows is not caught
- A
wentry with a glob that matches several paths writes its argument only up to the first backslash for all but the first,write_arg()cuts the argument up as it goes mksubsys()insrc/util.cis unused