Skip to content
Snippets Groups Projects
Commit c1329604 authored by Tri Vo's avatar Tri Vo
Browse files

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
parent cdac03d7
No related branches found
No related tags found
No related merge requests found
...@@ -58,8 +58,6 @@ recovery_only(` ...@@ -58,8 +58,6 @@ recovery_only(`
# Read kernel config through libvintf for OTA matching # Read kernel config through libvintf for OTA matching
allow recovery config_gz:file { open read getattr }; allow recovery config_gz:file { open read getattr };
r_dir_file(recovery, sysfs)
# Write to /sys/class/android_usb/android0/enable. # Write to /sys/class/android_usb/android0/enable.
r_dir_file(recovery, sysfs_android_usb) r_dir_file(recovery, sysfs_android_usb)
allow recovery sysfs_android_usb:file w_file_perms; allow recovery sysfs_android_usb:file w_file_perms;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment