From c1329604ab6574f7c8d13144215f2f2a592c1adc Mon Sep 17 00:00:00 2001 From: Tri Vo <trong@google.com> Date: Wed, 25 Oct 2017 20:06:06 -0700 Subject: [PATCH] Recovery: remove sysfs access Bug: 65643247 Test: adb sideload an ota package Test: mount /system Test: view recovery logs Test: run graphics test Test: run locale test Test: wipe data/factory reset Test: factory reset from Settings app Tested on sailfish; no selinux denials to sysfs type are observed. Change-Id: Ic8487d53d90b7d1d050574e0b084627d1b6abdba --- public/recovery.te | 2 -- 1 file changed, 2 deletions(-) diff --git a/public/recovery.te b/public/recovery.te index 777f25752..fb61dbd5f 100644 --- a/public/recovery.te +++ b/public/recovery.te @@ -58,8 +58,6 @@ recovery_only(` # Read kernel config through libvintf for OTA matching allow recovery config_gz:file { open read getattr }; - r_dir_file(recovery, sysfs) - # Write to /sys/class/android_usb/android0/enable. r_dir_file(recovery, sysfs_android_usb) allow recovery sysfs_android_usb:file w_file_perms; -- GitLab