Skip to content
Snippets Groups Projects
Commit f62362da authored by Mårten Kongstad's avatar Mårten Kongstad Committed by Todd Kennedy
Browse files

Add idmap2 and idmap2d

Bug: 78815803
Test: builds, boots
Test: manual: adb shell idmap2 create ...
Test: manual: adb shell ps | grep -e idmap2d
Change-Id: I60852e15d99329896ff9de6559d1e7cd1c67e33d
parent 7ef01c34
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
heapprofd heapprofd
heapprofd_exec heapprofd_exec
heapprofd_socket heapprofd_socket
idmap_service
intelligence_service intelligence_service
iris_service iris_service
llkd llkd
......
...@@ -277,6 +277,7 @@ ...@@ -277,6 +277,7 @@
/system/bin/tzdatacheck u:object_r:tzdatacheck_exec:s0 /system/bin/tzdatacheck u:object_r:tzdatacheck_exec:s0
/system/bin/flags_health_check -- u:object_r:flags_health_check_exec:s0 /system/bin/flags_health_check -- u:object_r:flags_health_check_exec:s0
/system/bin/idmap u:object_r:idmap_exec:s0 /system/bin/idmap u:object_r:idmap_exec:s0
/system/bin/idmap2(d)? u:object_r:idmap_exec:s0
/system/bin/update_engine u:object_r:update_engine_exec:s0 /system/bin/update_engine u:object_r:update_engine_exec:s0
/system/bin/bspatch u:object_r:update_engine_exec:s0 /system/bin/bspatch u:object_r:update_engine_exec:s0
/system/bin/storaged u:object_r:storaged_exec:s0 /system/bin/storaged u:object_r:storaged_exec:s0
......
typeattribute idmap coredomain; typeattribute idmap coredomain;
init_daemon_domain(idmap)
...@@ -67,6 +67,7 @@ hardware u:object_r:hardware_service:s0 ...@@ -67,6 +67,7 @@ hardware u:object_r:hardware_service:s0
hardware_properties u:object_r:hardware_properties_service:s0 hardware_properties u:object_r:hardware_properties_service:s0
hdmi_control u:object_r:hdmi_control_service:s0 hdmi_control u:object_r:hdmi_control_service:s0
ians u:object_r:radio_service:s0 ians u:object_r:radio_service:s0
idmap u:object_r:idmap_service:s0
incident u:object_r:incident_service:s0 incident u:object_r:incident_service:s0
inputflinger u:object_r:inputflinger_service:s0 inputflinger u:object_r:inputflinger_service:s0
input_method u:object_r:input_method_service:s0 input_method u:object_r:input_method_service:s0
......
...@@ -186,6 +186,7 @@ binder_call(system_server, binderservicedomain) ...@@ -186,6 +186,7 @@ binder_call(system_server, binderservicedomain)
binder_call(system_server, dumpstate) binder_call(system_server, dumpstate)
binder_call(system_server, fingerprintd) binder_call(system_server, fingerprintd)
binder_call(system_server, gatekeeperd) binder_call(system_server, gatekeeperd)
binder_call(system_server, idmap)
binder_call(system_server, installd) binder_call(system_server, installd)
binder_call(system_server, incidentd) binder_call(system_server, incidentd)
binder_call(system_server, netd) binder_call(system_server, netd)
...@@ -656,6 +657,7 @@ allow system_server fingerprintd_service:service_manager find; ...@@ -656,6 +657,7 @@ allow system_server fingerprintd_service:service_manager find;
allow system_server hal_fingerprint_service:service_manager find; allow system_server hal_fingerprint_service:service_manager find;
allow system_server gatekeeper_service:service_manager find; allow system_server gatekeeper_service:service_manager find;
allow system_server gpu_service:service_manager find; allow system_server gpu_service:service_manager find;
allow system_server idmap_service:service_manager find;
allow system_server incident_service:service_manager find; allow system_server incident_service:service_manager find;
allow system_server installd_service:service_manager find; allow system_server installd_service:service_manager find;
allow system_server keystore_service:service_manager find; allow system_server keystore_service:service_manager find;
......
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
type idmap, domain; type idmap, domain;
type idmap_exec, system_file_type, exec_type, file_type; type idmap_exec, system_file_type, exec_type, file_type;
# STOPSHIP remove /system/bin/idmap and the link between idmap and installd (b/118711077)
# Use open file to /data/resource-cache file inherited from installd. # Use open file to /data/resource-cache file inherited from installd.
allow idmap installd:fd use; allow idmap installd:fd use;
allow idmap resourcecache_data_file:file { getattr read write }; allow idmap resourcecache_data_file:file create_file_perms;
allow idmap resourcecache_data_file:dir rw_dir_perms;
# Ignore reading /proc/<pid>/maps after a fork. # Ignore reading /proc/<pid>/maps after a fork.
dontaudit idmap installd:file read; dontaudit idmap installd:file read;
...@@ -18,3 +20,7 @@ r_dir_file(idmap, vendor_app_file) ...@@ -18,3 +20,7 @@ r_dir_file(idmap, vendor_app_file)
# Allow apps access to /vendor/overlay # Allow apps access to /vendor/overlay
r_dir_file(idmap, vendor_overlay_file) r_dir_file(idmap, vendor_overlay_file)
# Allow the idmap2d binary to register as a service and communicate via AIDL
binder_use(idmap)
add_service(idmap, idmap_service)
...@@ -10,6 +10,7 @@ type fingerprintd_service, service_manager_type; ...@@ -10,6 +10,7 @@ type fingerprintd_service, service_manager_type;
type hal_fingerprint_service, service_manager_type; type hal_fingerprint_service, service_manager_type;
type gatekeeper_service, app_api_service, service_manager_type; type gatekeeper_service, app_api_service, service_manager_type;
type gpu_service, service_manager_type; type gpu_service, service_manager_type;
type idmap_service, service_manager_type;
type iorapd_service, service_manager_type; type iorapd_service, service_manager_type;
type inputflinger_service, service_manager_type; type inputflinger_service, service_manager_type;
type incident_service, service_manager_type; type incident_service, service_manager_type;
......
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