klte-common: init: restorecon .wifiver.info on boot

* We're messing with ownership and permissions here, so let's go
  ahead and fix the context of this near worthless thing.
* The kernel will create it, we also write it here which will create
  if it doesn't exist, so this is more manageable than chasing the
  type_transition path
* The file is already labeled as a wifi_data_file, so fix this to
  eliminate the below denial

avc: denied { read } for name=".wifiver.info" dev="mmcblk0p26"
  ino=12 scontext=u:r:hal_wifi_default:s0
  tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

Change-Id: Ie736b68f7d4d8559237b5cce072c6bf26f7ac4e7
This commit is contained in:
Kevin F. Haggerty 2018-02-16 07:07:24 -07:00
parent 01ebfad97a
commit 9da1285c16
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ on post-fs-data
write /data/.wifiver.info 0
chown system root /data/.wifiver.info
chmod 0664 /data/.wifiver.info
restorecon /data/.wifiver.info
# for WIFI Cert
chmod 0664 /data/.bustxglom.info