Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
update may_read_path_for_canister
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk committed Jul 25, 2023
1 parent ff7caeb commit 41ae5bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4666,6 +4666,8 @@ A record with

The predicate `may_read_path_for_canister` is defined as follows, implementing the access control outlined in [Request: Read state](#http-read-state):

may_read_path_for_canister(S, _, ["time"] · _) = True
may_read_path_for_canister(S, _, ["subnet"] · _) = True
may_read_path_for_canister(S, _, ["request_status", Rid] · _) =
∀ (R ↦ (_, ECID')) ∈ dom(S.requests). hash_of_map(R) = Rid => RS.sender == R.sender ∧ ECID == ECID'
may_read_path_for_canister(S, _, ["canister", cid, "module_hash"] · _) = cid == ECID
Expand Down

0 comments on commit 41ae5bf

Please sign in to comment.