tmpfiles: handle an ACL of any size

An a or A entry for a path with an ACL of more than 32 entries, or one
that would get more, left the path as it was with a warning.  The ACL
was kept in a fixed array.  It is now allocated to the size it needs.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-11-21 19:23:47 +01:00
1 parent c7f55a8b90
commit ce5a08e866
3 files changed
+79 -34

No files matched your search

+12
View File
@@ -63,6 +63,18 @@ a+ $DIR/file - - - - m::r
CONF
assert_mode $DIR/file 640
sep
say 'An ACL can have many entries'
run "touch $DIR/many; chmod 600 $DIR/many"
tmpfiles <<CONF
a $DIR/many - - - - $(seq -s, -f 'u:%g:r' 2000 2039)
CONF
assert_mode $DIR/many 640
tmpfiles <<CONF
a+ $DIR/many - - - - u:2040:-w-
CONF
assert_mode $DIR/many 660
sep
say 'A is recursive, and X is x only for a directory or an executable'
run "mkdir -p $DIR/tree/sub; touch $DIR/tree/sub/file $DIR/tree/sub/prog"