OP-TEE: Pseudo TAs
2024-11-7
| 2025-1-12
本文字數 163閱讀時長 1 分鐘
type
Post
status
Published
date
Nov 7, 2024
slug
summary
OP-TEE Pseudo TAs 的 codes trace 筆記。
tags
OP-TEE
category
Security
icon
password
⚠️
The code is based on: https://gitlab.com/riseproject/riscv-optee/optee_os/-/tree/dev-optee-mpxy Commit ID: 75df9ba41a404aec897399ead0ff0aebcbff48ca
  • tee_ta_init_pseudo_ta_session()
    • Look up the pseudo TA based on UUID.
    • Create pseudo TA context for the UUID, assign ctx->ts_ctx.ops to pseudo_ta_ops. pseudo_ta_ops will be the global callbacks for the pseudo TAs:

    • pseudo_ta_enter_open_session()
      • Call stc->pseudo_ta->open_session_entry_point() callback, if defined.
        • E.g. If the opened session is for pseudo TA: rtc.pta, open_session_entry_point() callback is: open_session():

      • pseudo_ta_enter_invoke_cmd()
        • Call stc->pseudo_ta->invoke_command_entry_point() callback.
          • E.g. If the opened session is for pseudo TA: device.pta, invoke_command_entry_point() callback is: invoke_command(), which will call get_devices() to retrieve the UUIDs of the pseudo TAs:
      • OP-TEE
      • OP-TEE: User TAsOP-TEE: TAs
        Loading...
        目錄