From 17d008ae73ce6971818d29ac76ff937741012be9 Mon Sep 17 00:00:00 2001 From: Alan Stokes <alanstokes@google.com> Date: Thu, 1 Mar 2018 14:30:52 +0000 Subject: [PATCH] Allow hal_vibrator access to sysfs_vibrator files. We already grant rw file access, but without dir search it's not much use. denied { search } for name="vibrator" dev="sysfs" ino=49606 scontext=u:r:hal_vibrator_default:s0 tcontext=u:object_r:sysfs_vibrator:s0 tclass=dir permissive=0 Bug: 72643420 Test: Builds, denial gone Change-Id: I3513c0a14f0ac1e60517009046e2654f1fc45c66 --- public/hal_vibrator.te | 1 + 1 file changed, 1 insertion(+) diff --git a/public/hal_vibrator.te b/public/hal_vibrator.te index c8612d77a..9ce34cac2 100644 --- a/public/hal_vibrator.te +++ b/public/hal_vibrator.te @@ -6,3 +6,4 @@ allow hal_vibrator_client hal_vibrator_hwservice:hwservice_manager find; # vibrator sysfs rw access allow hal_vibrator sysfs_vibrator:file rw_file_perms; +allow hal_vibrator sysfs_vibrator:dir search; -- GitLab