davinci: sepolicy: Add motor rules

Change-Id: Ia076f82c816d0ff3ced950fcb1e2982e9ca668ff
This commit is contained in:
Arian
2020-04-22 15:21:09 +02:00
parent fe196ce3ab
commit f73820a339
6 changed files with 39 additions and 0 deletions

7
sepolicy/vendor/system_app.te vendored Normal file
View File

@@ -0,0 +1,7 @@
allow system_app hal_motor_hwservice_xiaomi:hwservice_manager find;
binder_call(system_app, hal_motor)
allow system_app { motor_device sysfs_graphics sysfs_leds }:dir search;
allow system_app { cgroup sysfs_graphics }:file rw_file_perms;
allow system_app { motor_device sysfs_graphics hall_device }:chr_file rw_file_perms;