add selinux policy for GNSS hal am: 953c439643

am: 67c5cdfdbf

Change-Id: Ie9f8de8bac96b5b8088f58ac54c3e76dd90c40ee
This commit is contained in:
Hridya Valsaraju 2017-01-13 21:02:01 +00:00 committed by android-build-merger
commit e64bb0e8be
5 changed files with 16 additions and 0 deletions

View file

@ -240,6 +240,7 @@
/system/bin/hw/android\.hardware\.contexthub@1\.0-service u:object_r:hal_contexthub_default_exec:s0
/system/bin/hw/android\.hardware\.dumpstate@1\.0-service u:object_r:hal_dumpstate_default_exec:s0
/system/bin/hw/android\.hardware\.gatekeeper@1\.0-service u:object_r:hal_gatekeeper_default_exec:s0
/system/bin/hw/android\.hardware\.gnss@1\.0-service u:object_r:hal_gnss_default_exec:s0
/system/bin/hw/android\.hardware\.graphics\.allocator@2\.0-service u:object_r:hal_graphics_allocator_default_exec:s0
/system/bin/hw/android\.hardware\.graphics\.composer@2\.1-service u:object_r:hal_graphics_composer_default_exec:s0
/system/bin/hw/android\.hardware\.health@1\.0-service u:object_r:hal_health_default_exec:s0

View file

@ -0,0 +1,9 @@
type hal_gnss_default, hal_gnss, domain;
type hal_gnss_default_exec, exec_type, file_type;
init_daemon_domain(hal_gnss_default)
# Read access to system files for HALs in
# /{system,vendor,odm}/lib[64]/hw/ in order
# to be able to open the hal implementation .so files
r_dir_file(hal_gnss, system_file)

View file

@ -119,6 +119,7 @@ attribute hal_audio;
attribute hal_bluetooth;
attribute hal_dumpstate;
attribute hal_gatekeeper;
attribute hal_gnss;
attribute hal_graphics_allocator;
attribute hal_graphics_composer;
attribute hal_health;

4
public/hal_gnss.te Normal file
View file

@ -0,0 +1,4 @@
# hwbinder access
hwbinder_use(hal_gnss)
binder_call(hal_gnss, system_server)

View file

@ -162,6 +162,7 @@ hwbinder_use(system_server)
binder_call(system_server, hal_bluetooth)
binder_call(system_server, hal_boot)
binder_call(system_server, hal_contexthub)
binder_call(system_server, hal_gnss);
binder_call(system_server, hal_ir)
binder_call(system_server, hal_light)
binder_call(system_server, hal_memtrack)