commit | 185422206523fb1472b939f39e578b4890606cbb | [log] [tgz] |
---|---|---|
author | Inseob Kim <inseob@google.com> | Tue Sep 10 15:11:45 2024 +0900 |
committer | Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Thu Sep 12 01:49:55 2024 +0000 |
tree | 267484bc7414bd0656f0f4123bb58595cd8c24bd | |
parent | e1b078c137e164f3ca885b8f53574335722c45a2 [diff] |
Allow virtual_camera to read sysfs_gpu dirs This permission is necessary for partners' gpu devices. Bug: 352768417 Test: TH (cherry picked from https://android-review.googlesource.com/q/commit:fe3a27a568a61c02036156e106f57e8566c09790) Merged-In: I256f518171d420edee71ad9dcca05423f9fa0582 Change-Id: I256f518171d420edee71ad9dcca05423f9fa0582
diff --git a/private/virtual_camera.te b/private/virtual_camera.te index 6b3be0c..6888a4e 100644 --- a/private/virtual_camera.te +++ b/private/virtual_camera.te
@@ -40,7 +40,7 @@ # Allow virtual_camera to use GPU allow virtual_camera gpu_device:chr_file rw_file_perms; allow virtual_camera gpu_device:dir r_dir_perms; -allow virtual_camera sysfs_gpu:file r_file_perms; +r_dir_file(virtual_camera, sysfs_gpu) # Allow virtual camera to use graphics composer fd-s (fences). allow virtual_camera hal_graphics_composer:fd use;