Skip to content
Snippets Groups Projects
Commit 30e2d4e7 authored by Tri Vo's avatar Tri Vo Committed by android-build-merger
Browse files

Merge "Re-add access to /sys/class/android_usb." am: 9f788544 am: b5f4f205

am: 27f0e733

Change-Id: Ieccb08197b703e4e82be5c9a08520c777fe0c255
parents 92dacd1e 27f0e733
No related branches found
No related tags found
No related merge requests found
......@@ -55,10 +55,11 @@ recovery_only(`
# Read kernel config through libvintf for OTA matching
allow recovery config_gz:file { open read getattr };
# Write to /sys/class/android_usb/android0/enable.
# TODO: create more specific label?
r_dir_file(recovery, sysfs)
allow recovery sysfs:file w_file_perms;
# Write to /sys/class/android_usb/android0/enable.
r_dir_file(recovery, sysfs_android_usb)
allow recovery sysfs_android_usb:file w_file_perms;
# Write to /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq.
allow recovery sysfs_devices_system_cpu:file w_file_perms;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment