Skip to content

Commit

Permalink
doc: trd: storage: few more sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed May 10, 2024
1 parent 4ab0bb9 commit 9fd27a8
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions doc/reference/trd-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ Application Persistent Data Storage and Permissions
Abstract
-------------------------------

This document is in full compliance with
[TRD1][TRD1].
This document is in full compliance with [TRD1][TRD1].

1 Introduction
-------------------------------
Expand Down Expand Up @@ -60,11 +59,32 @@ There are three types of permissions:



3 Requirements
4 Requirements
-------------------------------


1. Applications are given separate write, read, and modify permissions.
2. The label stored with the persistent data is the application's short AppID.
3. Applications without a `ShortId::Unique` cannot access (i.e.,
read/write/modify) any persistent storage.
4. How permissions are mapped to applications must be customizable for different
Tock kernels.


5 Kernel Enforcement
-------------------------------

It is not feasible to implement all persistent storage APIs through the core
kernel (i.e., in trusted code). Instead, the kernel provides an API to retrieve
the storage permissions for a specific process. Capsules then use these
permissions to enforce restrictions on storage access.

6 Specifying Permissions
-------------------------------

Different users and different kernels will use different methods for determining
the persistent storage access permissions for different applications (and by
extensions the running process for that application).



Expand Down

0 comments on commit 9fd27a8

Please sign in to comment.