tmpfiles: add the h and H entries, file attributes

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>
This commit is contained in:
Joachim Wiberg committed 2026-11-20 19:10:02 +01:00
1 parent 1ef0da9c50
commit 3ff5c33217
8 files changed
+131 -7

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ test_teardown()
run "cat > $CONF" <<CONF
d $DIR
h $DIR - - - - +i
y $DIR - - - - +i
f $DIR/%!
f $DIR/after
CONF