mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
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:
3 files changed
+79
-34
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user