xref: /aosp_15_r20/system/sepolicy/prebuilts/api/30.0/private/nfc.te (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1*e4a36f41SAndroid Build Coastguard Worker# nfc subsystem
2*e4a36f41SAndroid Build Coastguard Workertypeattribute nfc coredomain;
3*e4a36f41SAndroid Build Coastguard Workerapp_domain(nfc)
4*e4a36f41SAndroid Build Coastguard Workernet_domain(nfc)
5*e4a36f41SAndroid Build Coastguard Worker
6*e4a36f41SAndroid Build Coastguard Workerbinder_service(nfc)
7*e4a36f41SAndroid Build Coastguard Workeradd_service(nfc, nfc_service)
8*e4a36f41SAndroid Build Coastguard Worker
9*e4a36f41SAndroid Build Coastguard Workerhal_client_domain(nfc, hal_nfc)
10*e4a36f41SAndroid Build Coastguard Worker
11*e4a36f41SAndroid Build Coastguard Worker# Data file accesses.
12*e4a36f41SAndroid Build Coastguard Workerallow nfc nfc_data_file:dir create_dir_perms;
13*e4a36f41SAndroid Build Coastguard Workerallow nfc nfc_data_file:notdevfile_class_set create_file_perms;
14*e4a36f41SAndroid Build Coastguard Worker
15*e4a36f41SAndroid Build Coastguard Worker# SoundPool loading and playback
16*e4a36f41SAndroid Build Coastguard Workerallow nfc audioserver_service:service_manager find;
17*e4a36f41SAndroid Build Coastguard Workerallow nfc drmserver_service:service_manager find;
18*e4a36f41SAndroid Build Coastguard Workerallow nfc mediametrics_service:service_manager find;
19*e4a36f41SAndroid Build Coastguard Workerallow nfc mediaextractor_service:service_manager find;
20*e4a36f41SAndroid Build Coastguard Workerallow nfc mediaserver_service:service_manager find;
21*e4a36f41SAndroid Build Coastguard Worker
22*e4a36f41SAndroid Build Coastguard Workerallow nfc radio_service:service_manager find;
23*e4a36f41SAndroid Build Coastguard Workerallow nfc app_api_service:service_manager find;
24*e4a36f41SAndroid Build Coastguard Workerallow nfc system_api_service:service_manager find;
25*e4a36f41SAndroid Build Coastguard Workerallow nfc vr_manager_service:service_manager find;
26*e4a36f41SAndroid Build Coastguard Workerallow nfc secure_element_service:service_manager find;
27*e4a36f41SAndroid Build Coastguard Worker
28*e4a36f41SAndroid Build Coastguard Workerset_prop(nfc, nfc_prop);
29*e4a36f41SAndroid Build Coastguard Worker
30*e4a36f41SAndroid Build Coastguard Worker# already open bugreport file descriptors may be shared with
31*e4a36f41SAndroid Build Coastguard Worker# the nfc process, from a file in
32*e4a36f41SAndroid Build Coastguard Worker# /data/data/com.android.shell/files/bugreports/bugreport-*.
33*e4a36f41SAndroid Build Coastguard Workerallow nfc shell_data_file:file read;
34