[ALPS04190424] NFC : W48p0 - Fix SELinux for factory mode

[Detail]
Factory mode tool for NFC only works with SElinux disabled.

[Solution]
Update NFC stack to latest release W48p0.
Create the communication socket into data/vendor and apply
a specific SElinux label.

MTK-Commit-Id: 910948f163c96cac14494e5951c504e63a3334ee

Change-Id: I9b89e828e344041ef5bb464cc872f442490a6e2a
CR-Id: ALPS04190424
Feature: NFC Chipset Capability
This commit is contained in:
ILEX Lin 2020-01-18 10:07:59 +08:00
parent 20d2ca6bd9
commit 2abdf3da9a
3 changed files with 8 additions and 1 deletions

View File

@ -375,4 +375,9 @@ allow factory mtk_audiohal_data_file:file { write create unlink r_file_perms };
allow factory proc_version:file {read open getattr};
# Allow to use persist.radio.multisim.config
allow factory exported3_radio_prop:file { read open getattr };
allow factory exported3_radio_prop:file { read open getattr };
# Purpose : NFC
allow factory vendor_nfc_socket:dir { write add_name remove_name search };
allow factory vendor_nfc_socket:sock_file { create write unlink setattr };

View File

@ -239,6 +239,7 @@ type debugfs_vpu_device_dbg, fs_type, debugfs_type;
# SF bqdump
type sf_bqdump_data_file, file_type, data_file_type, core_data_file_type;
type nfc_socket, file_type, data_file_type, core_data_file_type;
type vendor_nfc_socket, file_type, data_file_type;
# factory data file
type factory_data_file, file_type, data_file_type, core_data_file_type;
# Modem Log folder

View File

@ -45,6 +45,7 @@
#/data/mediacodec(/.*)? u:object_r:mediacodec_data_file:s0
#/data/.tp(/.*)? u:object_r:thermal_manager_data_file:s0
/data/nfc_socket(/.*)? u:object_r:nfc_socket:s0
/data/vendor/nfc_socket(/.*)? u:object_r:vendor_nfc_socket:s0
#/data/nvram(/.*)? u:object_r:nvram_data_file:s0
#/data/cct(/.*)? u:object_r:cct_data_file:s0
/data/vendor/md3(/.*)? u:object_r:c2k_file:s0