tee-supplicant: use renameat2()

Simplify the rename operation by using the renameat2() call, removing
the need to call fstat() first and removing possible race condition.
This call is 'hidden' behind the GNU_SOURCE define.

Signed-off-by: Pierre Ducroquet <pinaraf@pinaraf.info>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (vexpress-qemu_armv8a)
1 file changed
tree: a187f7d812ccfd7d46fc27752f52f12b6be54bcd
  1. .devcontainer/
  2. .github/
  3. .vscode/
  4. ci/
  5. libckteec/
  6. libseteec/
  7. libteeacl/
  8. libteec/
  9. scripts/
  10. tee-supplicant/
  11. .gitattributes
  12. .gitignore
  13. Android.bp
  14. CMakeLists.txt
  15. CMakeToolchain.txt
  16. config.mk
  17. flags.mk
  18. LICENSE
  19. Makefile
  20. optee_client.device.mk
  21. README.md
  22. 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