ldshyu commented on PR #304:
URL: 
https://github.com/apache/teaclave-trustzone-sdk/pull/304#issuecomment-4611330035

   > for
   > 
   > > export define_property_key to support getting TA defined properties
   > 
   > Do you mean custom TA properties? From what I can see, there are already 
many TA-defined properties implemented in the codebase. For example:
   > 
   > 
https://github.com/apache/teaclave-trustzone-sdk/blob/b3154cb8a4490c38fd2b547bf5fdbc960daf3666/crates/optee-utee/src/property.rs#L278-L470
   > 
   > Could you clarify which additional properties this change is intended to 
support?
   
   OPTEE allows user TA to define their own properties.
   For example, see `TA_CURRENT_TA_EXT_PROPERTIES` in 
https://github.com/OP-TEE/optee_test/blob/master/ta/os_test/include/user_ta_header_defines.h
   By exporting the macro, 
   I can do
   ```
   MyPropTrue.get()?
   ...
   define_property_key!(MyPropTrue, CurrentTa, "myprop.true", bool);
   ```
   in user TA.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to