mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
tmpfiles: add the a and A entries, POSIX ACLs
The tpm2-tss package sets a default ACL on its keystore:
d /var/lib/tpm2-tss/system/keystore 2775 tss tss - -
a+ /var/lib/tpm2-tss/system/keystore - - - - default:group:tss:rwx
tmpfiles skipped the a+ line as unsupported, so what was created in
the keystore did not get the group access it relies on.
Add a and A, the latter recursive, with and without +. With + the
entries are added to the ACL of the path, without it they replace it.
The ACL is written to the system.posix_acl_access and _default
extended attributes in the format the kernel uses, which saves a
dependency on libacl. As with setfacl, the mask is made to cover the
named entries unless the entry sets one.
An ACL can have at most 32 entries. A path with more is left as it
is, with a warning.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
4 files changed
+406
No files matched your search
@@ -11,6 +11,9 @@ All relevant changes are documented in this file.
|
||||
- `shutdown` now takes a time, `now`, `+MIN`, or `HH:MM`, and a message.
|
||||
Finit warns logged-in users as the time approaches, refuses new logins
|
||||
from five minutes before, and `shutdown -c` cancels. Issue #149
|
||||
- tmpfiles: add the `a`, `a+`, `A`, and `A+` entries for POSIX ACLs, used
|
||||
by for example the tpm2-tss package. Finit sets them itself, no need
|
||||
for libacl or `setfacl`
|
||||
- The `restart_sec:` option of the line-based format is now spelled
|
||||
`restart-sec:`, kebab-case like every other setting. The old spelling
|
||||
is still accepted
|
||||
|
||||
Reference in new issue
Block a user