This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hardware_oplus-CherishOS/sepolicy/qti/vendor/vl53l1_daemon_main.te
cjh1249131356 2d4e173ef8 sepolicy: qti: Add rules for OnePlus Camera
Co-authored-by: Sanju0910 <sreeshankar0910@gmail.com>
Co-authored-by: chandu078 <chandudyavanapelli03@gmail.com>
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
2023-07-09 11:21:52 +05:30

21 lines
638 B
Plaintext

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_kobject_uevent_socket
netlink_socket
} create_socket_perms_no_ioctl;
allow vl53l1_daemon_main self:netlink_iscsi_socket { read write create bind };
allow vl53l1_daemon_main sysfs:file r_file_perms;
r_dir_file(vl53l1_daemon_main, vendor_persist_camera_file)
r_dir_file(vl53l1_daemon_main, vendor_sysfs_tof)
rw_dir_file(vl53l1_daemon_main, mnt_vendor_file)
rw_dir_file(vl53l1_daemon_main, vendor_persist_camera_file)