Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITS should call fsync #209

Open
gilles-peskine-arm opened this issue Aug 7, 2019 · 2 comments
Open

ITS should call fsync #209

gilles-peskine-arm opened this issue Aug 7, 2019 · 2 comments

Comments

@gilles-peskine-arm
Copy link
Collaborator

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
Copy link
Member

ciarmcom commented Aug 7, 2019

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

@adbridge
Copy link

adbridge commented Nov 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants