sepolicy: Add policy for vibrator HIDL service am: b32b4a112f am: d55ef92371

am: 5b87c66933

Change-Id: I964fcb218f92c6f74dbff5f551229956abe01b68
This commit is contained in:
Prashant Malani 2016-10-13 21:01:40 +00:00 committed by android-build-merger
commit d7cbaf298e
5 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# may be started by init
init_daemon_domain(android_hardware_vibrator_1_0_service)

View File

@ -222,6 +222,7 @@
/system/fake-lib(64)?/libart.* u:object_r:libart_file:s0
/system/lib(64)?/libart.* u:object_r:libart_file:s0
/system/bin/hw/android.hardware.nfc@1.0-service u:object_r:android_hardware_nfc_1_0_service_exec:s0
/system/bin/hw/android.hardware.vibrator@1.0-service u:object_r:android_hardware_vibrator_1_0_service_exec:s0
#############################
# Vendor files
@ -384,6 +385,7 @@
/sys/kernel/uevent_helper -- u:object_r:usermodehelper:s0
/sys/module/lowmemorykiller(/.*)? -- u:object_r:sysfs_lowmemorykiller:s0
/sys/module/wlan/parameters/fwpath u:object_r:sysfs_wlan_fwpath:s0
/sys/devices/virtual/timed_output/vibrator/enable u:object_r:sysfs_vibrator:s0
#############################
# debugfs files

View File

@ -0,0 +1,9 @@
# vibrator subsystem
type android_hardware_vibrator_1_0_service, domain;
type android_hardware_vibrator_1_0_service_exec, exec_type, file_type;
# hwbinder access
hwbinder_use(android_hardware_vibrator_1_0_service)
# vibrator sysfs rw access
allow android_hardware_vibrator_1_0_service sysfs_vibrator:file rw_file_perms;

View File

@ -41,6 +41,7 @@ type sysfs_devices_system_cpu, fs_type, sysfs_type;
type sysfs_lowmemorykiller, fs_type, sysfs_type;
# /sys/module/wlan/parameters/fwpath
type sysfs_wlan_fwpath, fs_type, sysfs_type;
type sysfs_vibrator, fs_type, sysfs_type;
type sysfs_thermal, sysfs_type, fs_type;

View File

@ -155,6 +155,7 @@ binder_call(system_server, dumpstate)
binder_call(system_server, netd)
binder_call(system_server, wificond)
binder_service(system_server)
binder_call(system_server, android_hardware_vibrator_1_0_service)
# Ask debuggerd to dump backtraces for native stacks of interest.
#