-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathfingerprintd.te
35 lines (31 loc) · 1.66 KB
/
fingerprintd.te
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Allow fingerprintd to open firmware images
r_dir_file(fingerprintd, firmware_file)
allow fingerprintd fingerprint_service:service_manager find;
allow fingerprintd sysfs:file { open write };
allow fingerprintd fpc_persist_file:file { open read };
allow fingerprintd property_socket:sock_file { write };
allow fingerprintd mpctl_socket:sock_file { write };
allow fingerprintd init:unix_stream_socket { connectto };
allow fingerprintd perfd:unix_stream_socket { connectto };
allow fingerprintd fp_pnstatus_prop:property_service { set };
allow fingerprintd fingerprintd:netlink_socket { create bind read write };
allow fingerprintd fpc_data_file:dir rw_dir_perms;
allow fingerprintd fpc_data_file:file create_file_perms;
allow fingerprintd fpc_data_file:sock_file { create unlink };
allow fingerprintd goodix_data_file:dir rw_dir_perms;
allow fingerprintd goodix_data_file:file create_file_perms;
allow fingerprintd goodix_data_file:sock_file { create unlink };
allow fingerprintd goodix_fpd_device:chr_file rw_file_perms;
allow fingerprintd goodix_fpd_device:chr_file { create setattr };
allow fingerprintd sysfs_fpc:dir r_dir_perms;
allow fingerprintd sysfs_fpc:file rw_file_perms;
allow fingerprintd sysmatdrv_device:chr_file w_file_perms;
allow fingerprintd system_prop:property_service { set };
allow fingerprintd tee_device:chr_file rw_file_perms;
allow fingerprintd uhid_device:chr_file rw_file_perms;
allow fingerprintd storage_file:lnk_file read;
allow fingerprintd storage_file:dir search;
allow fingerprintd mnt_user_file:lnk_file read;
allow fingerprintd mnt_user_file:dir search;
allow fingerprintd sdcardfs:dir search;
allow fingerprintd media_rw_data_file:dir { search read open };