sepolicy: Fix NFC avc denial issue

Add rule to allow NFC to access runtime data file and fix below
denial:

com.android.nfc: type=1400 audit(0.0:1125): avc: denied { write }
for comm=4173796E635461736B202331 name="nfc" dev="sda8" ino=475137
scontext=u:r:nfc:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir
permissive=0

Change-Id: I977931c1918035ad46ccc5240a03463e4d9edb56
This commit is contained in:
Tapas Dey 2019-04-18 15:17:59 +05:30
parent 38f1871b9d
commit f655e8ebfb
2 changed files with 1 additions and 1 deletions

View file

@ -240,7 +240,6 @@
/data/vendor/netmgr(/.*)? u:object_r:netmgr_data_file:s0
/data/vendor/netmgr/recovery(/.*)? u:object_r:netmgr_recovery_data_file:s0
/data/vendor/location(/.*)? u:object_r:location_data_file:s0
/data/nfc(/.*)? u:object_r:nfc_data_file:s0
/data/vendor/camera(/.*)? u:object_r:vendor_camera_data_file:s0
/data/vendor/display(/.*)? u:object_r:display_vendor_data_file:s0
/data/vendor/nfc(/.*)? u:object_r:nfc_vendor_data_file:s0

View file

@ -56,3 +56,4 @@
/data/dpm(/.*)? u:object_r:dpmd_data_file:s0
/data/misc/qvr(/.*)? u:object_r:qvrd_data_file:s0
/data/misc/mirrorlinkserver(/.*)? u:object_r:mirrorlink_data_file:s0
/data/nfc(/.*)? u:object_r:nfc_data_file:s0