3.18.0
tee-supplicant: fs: use errno instead of returning TEEC_ERROR_GENERIC

Try to give a bit more information to the TEE core (and subsequently the
TA) about the cause of FS operation errors by translating errno to a
TEEC_Result rather than returning TEEC_ERROR_GENERIC always. Introduce
TEEC_ERROR_STORAGE_NO_SPACE with the same value as
TEE_ERROR_STORAGE_NO_SPACE and use it to map to ENOSPC.

This would have been helpful in issue [1]. Instead of being killed with
TEE_ERROR_GENERIC, the TA would have received TEE_ERROR_STORAGE_NO_SPACE.

Link: [1] https://github.com/OP-TEE/optee_os/issues/5419
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
2 files changed
tree: ad02ef1da8cd6d07f88aa2eac43f39952163c9cb
  1. .github/
  2. libckteec/
  3. libseteec/
  4. libteec/
  5. public/
  6. scripts/
  7. tee-supplicant/
  8. .gitattributes
  9. .gitignore
  10. .travis.yml
  11. Android.mk
  12. android_flags.mk
  13. CMakeLists.txt
  14. CMakeToolchain.txt
  15. config.mk
  16. flags.mk
  17. LICENSE
  18. Makefile
  19. README.md
  20. typedefs.checkpatch
README.md

OP-TEE Client API

This git contains source code for the non-secure side implementation of the OP-TEE project making up the client library and tee-supplicant.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_client.

// OP-TEE core maintainers