diff options
-rw-r--r-- | adbd.te | 8 | ||||
-rw-r--r-- | file.te | 1 | ||||
-rw-r--r-- | file_contexts | 3 |
3 files changed, 11 insertions, 1 deletions
@@ -6,3 +6,11 @@ unconfined_domain(adbd) domain_auto_trans(adbd, shell_exec, shell) # this is an entrypoint allow adbd rootfs:file entrypoint; + +# Read /data/misc/adb/adb_keys. +allow adbd adb_keys_file:dir search; +allow adbd adb_keys_file:file r_file_perms; + +# Allow access in case /data/misc/adb still has the old type. +allow adbd system_data_file:dir search; +allow adbd system_data_file:file r_file_perms; @@ -55,6 +55,7 @@ type wifi_data_file, file_type, data_file_type; type radio_data_file, file_type, data_file_type; type nfc_data_file, file_type, data_file_type; type camera_calibration_file, file_type, data_file_type; +type adb_keys_file, file_type, data_file_type; # /data/data subdirectories - app sandboxes type app_data_file, file_type, data_file_type; type platform_app_data_file, file_type, data_file_type, mlstrustedobject; diff --git a/file_contexts b/file_contexts index 81b9da9..d3e53ad 100644 --- a/file_contexts +++ b/file_contexts @@ -3,7 +3,7 @@ / u:object_r:rootfs:s0 # Data files -/adb_keys u:object_r:rootfs:s0 +/adb_keys u:object_r:adb_keys_file:s0 /default.prop u:object_r:rootfs:s0 /fstab\..* u:object_r:rootfs:s0 /init\..* u:object_r:rootfs:s0 @@ -185,6 +185,7 @@ /data/misc/wifi(/.*)? u:object_r:wifi_data_file:s0 /data/misc/camera(/.*)? u:object_r:camera_calibration_file:s0 /data/misc/dhcp(/.*)? u:object_r:dhcp_data_file:s0 +/data/misc/adb(/.*)? u:object_r:adb_keys_file:s0 # App sandboxes /data/data/.* u:object_r:app_data_file:s0 # Wallpaper file. |