mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles.d(5) has h to set file attributes, as chattr(1) does, and H
for the path and everything below it:
h /var/log/journal - - - - +C
tmpfiles skipped them as unsupported.
Add both. The argument is the letters chattr(1) has, after a + to
add them, which is the default, a - to remove them, or a = to have
just these set. Only files and directories have such attributes,
anything else is left alone.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1.7 KiB
1.7 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.
- Remaining types and modifiers
C+, which is read asCzandZonly set the SELinux label whenrestoreconis installed- 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: --root, --replace, --dry-run, --purge,
--graceful, and --cat-config.
- 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
xorXentry with an age should have what it names cleaned by that age, the age is not read - 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 - The
%Tand%Vspecifiers are always/tmpand/var/tmp, they do not look at$TMPDIR mksubsys()insrc/util.cis unused