ITS should call fsync #209

Open
opened 2019-08-07 09:20:08 -05:00 by gilles-peskine-arm · 2 comments
gilles-peskine-arm commented 2019-08-07 09:20:08 -05:00 (Migrated from github.com)

Description

The PSA ITS implementation in Mbed Crypto was originally developed for testing. It modifies files atomically, so it's resilient to interruptions such as a process crash, but it does not call any disk synchronization primitives, so it is not resilient to an operating system crash.

PSA ITS should call a disk synchronization primitive that is configurable at build time. On Unix systems, it should call fsync on the file and on the containing directory.

Cc @paulhowardarm

Issue request type

[ ] Question
[x] Enhancement
[ ] Bug
### Description The PSA ITS implementation in Mbed Crypto was originally developed for testing. It modifies files atomically, so it's resilient to interruptions such as a process crash, but it does not call any disk synchronization primitives, so it is not resilient to an operating system crash. PSA ITS should call a disk synchronization primitive that is configurable at build time. On Unix systems, it should call `fsync` on the file and on the containing directory. Cc @paulhowardarm ### Issue request type [ ] Question [x] Enhancement [ ] Bug
ciarmcom commented 2019-08-07 10:54:34 -05:00 (Migrated from github.com)

Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-857

*Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-857*
adbridge commented 2019-11-04 06:42:12 -06:00 (Migrated from github.com)

Apologies, this was closed in error by the automated bot - re-opening.

Apologies, this was closed in error by the automated bot - re-opening.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-ARMmbed/mbed-crypto#209
No description provided.