summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-09-29 23:13:09 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-09-29 23:13:09 +0000
commit1276c0701b11bad1afddfd6d5d560b0982495104 (patch)
tree52ca67995bccb9d210cce17852616d97f97133a3
parente4b271cf3785033565c9c4952823c7177aa0b0a1 (diff)
parent5d596d7815933139a0e70270ee98b61d43ea1730 (diff)
downloadredbull-1276c0701b11bad1afddfd6d5d560b0982495104.tar.gz
Snap for 6872792 from 5d596d7815933139a0e70270ee98b61d43ea1730 to rvc-qpr1-release
Change-Id: Ife76ade0b1fc218e7009b6c2eefd34eeec5c1ba3
-rw-r--r--init.hardware.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.hardware.rc b/init.hardware.rc
index ae04b617..a003b876 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -370,6 +370,10 @@ on early-boot
chown system system /mnt/vendor/persist/sensors/registry/factory_data/sns_fac_registry
restorecon_recursive /mnt/vendor/persist/sensors/registry/factory_data
+ # Restore SeLinux Context for preventing temp.json with
+ # incorrect security context
+ restorecon /mnt/vendor/persist/sensors/registry/temp.json
+
chmod 770 /mnt/vendor/persist/audio
chmod 660 /mnt/vendor/persist/audio/audio.cal
chown media audio /mnt/vendor/persist/audio