sm8250-common: Bring in TOF sensor HAL

Change-Id: Ic5296a9ecf96f9a7fec5f523f9c59bfb68a0704f
This commit is contained in:
LuK1337
2021-02-16 19:18:10 +01:00
parent 0a0b0f26f8
commit d1d109c825
5 changed files with 19 additions and 0 deletions

14
sepolicy/vendor/vl53l1_daemon_main.te vendored Normal file
View File

@@ -0,0 +1,14 @@
type vl53l1_daemon_main, domain;
type vl53l1_daemon_main_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(vl53l1_daemon_main)
allow vl53l1_daemon_main self:{
netlink_generic_socket
netlink_iscsi_socket
netlink_kobject_uevent_socket
netlink_socket
} create_socket_perms_no_ioctl;
allow vl53l1_daemon_main sysfs_vl53l1:dir search;
allow vl53l1_daemon_main sysfs_vl53l1:file rw_file_perms;