chrmhoffmann

Untitled

May 4th, 2022
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. From d57eeaaa56e4cf27f03835f2f3fd525b59438edd Mon Sep 17 00:00:00 2001
  2. From: Christian Hoffmann <[email protected]>
  3. Date: Wed, 4 May 2022 11:00:36 +0200
  4. Subject: [PATCH] amlogic: Sepolicy for tee firmware loader
  5.  
  6. Change-Id: I1d47dc65fb5ac18824272b951b39e37f4a888410
  7. ---
  8. sepolicy/vendor/file.te | 2 --
  9. sepolicy/vendor/tee_firmload.te | 6 ++++++
  10. 2 files changed, 6 insertions(+), 2 deletions(-)
  11. create mode 100644 sepolicy/vendor/tee_firmload.te
  12.  
  13. diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te
  14. index 3c10e3f..e2ac09a 100644
  15. --- a/sepolicy/vendor/file.te
  16. +++ b/sepolicy/vendor/file.te
  17. @@ -16,6 +16,4 @@ type sysfs_mpgpu_cmd, fs_type, sysfs_type;
  18. type sysfs_wifi, fs_type, sysfs_type;
  19. type sysfs_xbmc, fs_type, sysfs_type;
  20.  
  21. -type tee_firmload_exec, exec_type, vendor_file_type, file_type;
  22. -
  23. type vendor_mediadrm_vendor_data_file, file_type, data_file_type;
  24. diff --git a/sepolicy/vendor/tee_firmload.te b/sepolicy/vendor/tee_firmload.te
  25. new file mode 100644
  26. index 0000000..1a1cb6d
  27. --- /dev/null
  28. +++ b/sepolicy/vendor/tee_firmload.te
  29. @@ -0,0 +1,6 @@
  30. +type tee_firmload, domain;
  31. +type tee_firmload_exec, exec_type, vendor_file_type, file_type;
  32. +
  33. +init_daemon_domain(tee_firmload)
  34. +
  35. +allow tee_firmload tee_device:chr_file rw_file_perms;
  36. --
  37. 2.34.1
  38.  
Advertisement
Add Comment
Please, Sign In to add comment