From 963848fdaaf83d34268124ec5a8848df12e5256b Mon Sep 17 00:00:00 2001 From: Oleg Matcovschi Date: Thu, 29 Apr 2021 14:34:55 -0700 Subject: [PATCH] sepolicy:gs101: allow init-insmod-sh to access sysfs_leds nodes Bug: 186788772 Signed-off-by: Oleg Matcovschi Change-Id: I9cc44571eb5c8f52d6307bff9cb77f08712c5404 --- whitechapel/vendor/google/init-insmod-sh.te | 1 + 1 file changed, 1 insertion(+) diff --git a/whitechapel/vendor/google/init-insmod-sh.te b/whitechapel/vendor/google/init-insmod-sh.te index c4d29945..9b2da73d 100644 --- a/whitechapel/vendor/google/init-insmod-sh.te +++ b/whitechapel/vendor/google/init-insmod-sh.te @@ -3,6 +3,7 @@ type init-insmod-sh_exec, vendor_file_type, exec_type, file_type; init_daemon_domain(init-insmod-sh) allow init-insmod-sh self:capability sys_module; +allow init-insmod-sh sysfs_leds:dir r_dir_perms; allow init-insmod-sh vendor_kernel_modules:system module_load; allow init-insmod-sh vendor_toolbox_exec:file execute_no_trans;