From 5c009fb96ffe5927499d3981841402609f7d4e00 Mon Sep 17 00:00:00 2001 From: Wenhao Wang Date: Thu, 15 Jul 2021 17:10:31 -0700 Subject: [PATCH] Add wakelock access for storageproxyd The storageproxyd needs a wakelock around the sequence of UFS commands Bug: 193456223 Test: Trusty storage tests Change-Id: I1efe3144c8bcc17c056fc3b9b796e080f77991d5 --- whitechapel/vendor/google/storageproxyd.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/whitechapel/vendor/google/storageproxyd.te b/whitechapel/vendor/google/storageproxyd.te index f8c2692b..d6acb458 100644 --- a/whitechapel/vendor/google/storageproxyd.te +++ b/whitechapel/vendor/google/storageproxyd.te @@ -1,6 +1,9 @@ type sg_device, dev_type; type persist_ss_file, file_type, vendor_persist_type; +# Handle wake locks +wakelock_use(tee) + allow tee persist_ss_file:file create_file_perms; allow tee persist_ss_file:dir create_dir_perms; allow tee persist_file:dir r_dir_perms;