Skip to content

Commit

Permalink
Do not consider failures to write files in /sys hard errors
Browse files Browse the repository at this point in the history
systemd-tmpfiles can run in containers, chroots, ... where writing to /sys will fail, so let's suffix these lines with "-" to avoid considering these cases hard errors.
  • Loading branch information
DaanDeMeyer authored Aug 4, 2023
1 parent 86949f7 commit 73ce6ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/tmpfiles.d/tpm2-tss-fapi.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ d @localstatedir@/lib/tpm2-tss/system/keystore 2775 tss tss -
a+ @localstatedir@/lib/tpm2-tss/system/keystore - - - - default:group:tss:rwx
d @runstatedir@/tpm2-tss/eventlog 2775 tss tss - -
a+ @runstatedir@/tpm2-tss/eventlog - - - - default:group:tss:rwx
z /sys/kernel/security/tpm[0-9]/binary_bios_measurements 0440 root tss - -
z /sys/kernel/security/ima/binary_runtime_measurements 0440 root tss - -
z- /sys/kernel/security/tpm[0-9]/binary_bios_measurements 0440 root tss - -
z- /sys/kernel/security/ima/binary_runtime_measurements 0440 root tss - -

0 comments on commit 73ce6ef

Please sign in to comment.