• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ==============================================
2# Policy File of /system/bin/lbs_dbg Executable File
3
4# ==============================================
5# Type Declaration
6# ==============================================
7type lbs_dbg, domain;
8# ==============================================
9# MTK Policy Rule
10# ==============================================
11type lbs_dbg_exec, system_file_type, exec_type, file_type;
12typeattribute lbs_dbg coredomain;
13
14init_daemon_domain(lbs_dbg)
15
16#============= lbs_dbg ==============
17allow lbs_dbg storage_file:dir { write create add_name search mounton };
18allow lbs_dbg storage_file:lnk_file read;
19allow lbs_dbg lbs_dbg_data_file:file create_file_perms;
20
21allow lbs_dbg debuglog_data_file:lnk_file r_file_perms;
22
23allow lbs_dbg mnt_user_file:dir search;
24allow lbs_dbg fuse:dir create_dir_perms;
25allow lbs_dbg fuse:file create_file_perms;
26allow lbs_dbg sdcard_type:filesystem unmount;
27allow lbs_dbg tmpfs:filesystem unmount;
28allow lbs_dbg sysfs:dir { read open };
29allow lbs_dbg sysfs_leds:dir search;
30allow lbs_dbg sysfs_leds:lnk_file read;
31allow lbs_dbg sysfs_vibrator:file {open read write};
32
33allow lbs_dbg sdcard_type:dir r_dir_perms;
34allow lbs_dbg self:netlink_route_socket { bind create getattr write nlmsg_read read nlmsg_write };
35
36allow lbs_dbg self:tcp_socket create_stream_socket_perms;
37allow lbs_dbg self:udp_socket create_socket_perms;
38
39get_prop(lbs_dbg, hwservicemanager_prop)
40hal_client_domain(lbs_dbg, mtk_hal_lbs)
41
42
43allow lbs_dbg vfat:dir { write remove_name create add_name };
44allow lbs_dbg vfat:file { write rename create open getattr unlink };
45allow lbs_dbg debuglog_data_file:dir { create_dir_perms };
46allow lbs_dbg debuglog_data_file:file { create_file_perms };
47allow lbs_dbg sdcardfs:dir { create_dir_perms };
48allow lbs_dbg sdcardfs:file { create_file_perms };
49allow lbs_dbg media_rw_data_file:dir { create_dir_perms };
50allow lbs_dbg media_rw_data_file:file { create_file_perms };
51